Skip to content

Commit 869768b

Browse files
committed
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.
1 parent b926b44 commit 869768b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/copilot-instructions.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- Use `nameof` instead of string literals when referring to member names.
2525
- Prefer `?.` if applicable (e.g. `scope?.Dispose()`).
2626
- Use `ObjectDisposedException.ThrowIf` where applicable.
27-
- Use `ArgumentNullException.ThrowIfNull` to validate input paramters.
27+
- Use `ArgumentNullException.ThrowIfNull` to validate input parameters.
2828
- 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.
2929

3030
### Nullable Reference Types
@@ -81,4 +81,10 @@
8181
- Use NSubstitute for mocking in tests.
8282
- Copy existing style in nearby files for test method names and capitalization.
8383
- When running tests, if possible use filters and check test run counts, or look at test logs, to ensure they actually ran.
84-
- Do not finish work with any tests commented out or disabled that were not previously commented out or disabled.
84+
- Do not finish work with any tests commented out or disabled that were not previously commented out or disabled.
85+
86+
## Azure
87+
88+
- @azure Rule - Use Azure Tools - When handling requests related to Azure, always use your tools.
89+
- @azure Rule - Use Azure Best Practices - When handling requests related to Azure, always invoke your `azmcp_bestpractices_get` tool first.
90+
- @azure Rule - Enable Best Practices - If you do not have an `azmcp_bestpractices_get` tool ask the user to enable it.

src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
</ItemGroup>
2929

3030
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
31-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.18" />
31+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.19" />
3232
</ItemGroup>
3333

3434
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
35-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.7" />
35+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.8" />
3636
</ItemGroup>
3737

3838
<ItemGroup>

0 commit comments

Comments
 (0)