From 7bb884c8a1018219dc09ec5832d373045a4f56f0 Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Wed, 11 Mar 2026 10:51:37 +0100 Subject: [PATCH] Update instructions and JwtBearer package versions Clarified guidance on ConfigureAwait usage in copilot-instructions.md and fixed duplicate test instruction. Upgraded Microsoft.AspNetCore.Authentication.JwtBearer to latest patch versions for .NET 8.0, 9.0, and 10.0 in csproj. --- .github/copilot-instructions.md | 4 ++-- .../SimpleAuthentication.Abstractions.csproj | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 240f23c..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 @@ -81,4 +81,4 @@ - Use NSubstitute for mocking in tests. - Copy existing style in nearby files for test method names and capitalization. - When running tests, if possible use filters and check test run counts, or look at test logs, to ensure they actually ran. -- Do not finish work with any tests commented out or disabled that were not previously commented out or disabled. \ No newline at end of file +- Do not finish work with any tests commented out or disabled that were not previously commented out or disabled. diff --git a/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj b/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj index de54914..024ab07 100644 --- a/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj +++ b/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj @@ -28,15 +28,15 @@ - + - + - +