From 869768b594eafe45fe5eea1564260cb7ade27c26 Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Mon, 1 Sep 2025 11:04:58 +0200 Subject: [PATCH] Update copilot instructions and package versions Corrected a typo in `copilot-instructions.md` and added a new section for Azure best practices. Updated the `Microsoft.AspNetCore.Authentication.JwtBearer` package versions in `SimpleAuthentication.Abstractions.csproj` for both `net8.0` and `net9.0` target frameworks. --- .github/copilot-instructions.md | 10 ++++++++-- .../SimpleAuthentication.Abstractions.csproj | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 8a7fce7..610f98a 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -24,7 +24,7 @@ - Use `nameof` instead of string literals when referring to member names. - Prefer `?.` if applicable (e.g. `scope?.Dispose()`). - Use `ObjectDisposedException.ThrowIf` where applicable. -- Use `ArgumentNullException.ThrowIfNull` to validate input paramters. +- Use `ArgumentNullException.ThrowIfNull` to validate input parameters. - If you add new code files, ensure they are listed in the csproj file (if other files in that folder are listed there) so they build. ### Nullable Reference Types @@ -81,4 +81,10 @@ - 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. + +## Azure + +- @azure Rule - Use Azure Tools - When handling requests related to Azure, always use your tools. +- @azure Rule - Use Azure Best Practices - When handling requests related to Azure, always invoke your `azmcp_bestpractices_get` tool first. +- @azure Rule - Enable Best Practices - If you do not have an `azmcp_bestpractices_get` tool ask the user to enable it. diff --git a/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj b/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj index 0148894..3480693 100644 --- a/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj +++ b/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj @@ -28,11 +28,11 @@ - + - +