Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Here are some general guidelines that apply to all code.

- The top of all *.cs files should have a copyright notice: `// Copyright (c) Microsoft. All rights reserved.`
- All public methods and classes should have XML documentation comments.
- After adding, modifying or deleting code, run `dotnet build`, and then fix any reported build errors.
- After adding or modifying code, run `dotnet format` to automatically fix any formatting errors.
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first instruction mentions "After adding, modifying or deleting code, run dotnet build" but the second instruction only mentions "After adding or modifying code, run dotnet format". This inconsistency is noticeable - if formatting should be run after deletion as well, it should be included; if not, the reasoning should be clear. Consider making these consistent, likely by including "deleting" in the second instruction as well, since deleting code could also affect formatting (e.g., removing code might leave trailing whitespace or empty lines that need formatting).

Suggested change
- After adding or modifying code, run `dotnet format` to automatically fix any formatting errors.
- After adding, modifying or deleting code, run `dotnet format` to automatically fix any formatting errors.

Copilot uses AI. Check for mistakes.

### C# Sample Code Guidelines

Expand Down