From b3ffddeaca8685eac8e3f23bdd1eb99411fb04a0 Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Wed, 15 Apr 2026 12:10:05 +0200 Subject: [PATCH] Update guidance and upgrade NuGet package versions Clarified ConfigureAwait(false) usage in copilot-instructions.md for library vs ASP.NET Core scenarios. Upgraded multiple NuGet dependencies in SqlDatabaseVectorSearch.csproj to their latest versions for improved compatibility and features. --- .github/copilot-instructions.md | 2 +- .../SqlDatabaseVectorSearch.csproj | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index f3a13a0..4d3ff40 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -42,7 +42,7 @@ - Return `Task` or `ValueTask` from asynchronous methods. - Use `CancellationToken` parameters to support cancellation. - Avoid async void methods except for event handlers. -- Call `ConfigureAwait(false)` on awaited calls to avoid deadlocks. +- Use `ConfigureAwait(false)` only in library code that may be consumed by apps with a `SynchronizationContext` (e.g., classic ASP.NET, WPF, WinForms); it is generally unnecessary in ASP.NET Core. ### Error Handling diff --git a/SqlDatabaseVectorSearch/SqlDatabaseVectorSearch.csproj b/SqlDatabaseVectorSearch/SqlDatabaseVectorSearch.csproj index 0f84d6b..fc1fe36 100644 --- a/SqlDatabaseVectorSearch/SqlDatabaseVectorSearch.csproj +++ b/SqlDatabaseVectorSearch/SqlDatabaseVectorSearch.csproj @@ -9,27 +9,27 @@ - - + + - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - + - - - + + +