Skip to content

Commit 9a2e4e9

Browse files
authored
Update copilot-instructions.md to reference main branch with fallback (#51339)
2 parents 6dd8f2e + 2c6d91a commit 9a2e4e9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/copilot-instructions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
Use the instructions from the main branch if available: @dotnet/sdk/files/.github/copilot-instructions.md
2+
3+
If the instructions from main are not available, use the following as a fallback:
4+
15
Coding Style and Changes:
26
- Code should match the style of the file it's in.
37
- Changes should be minimal to resolve a problem in a clean way.
48
- User-visible changes to behavior should be considered carefully before committing. They should always be flagged.
59
- When generating code, run `dotnet format` to ensure uniform formatting.
610
- Prefer using file-based namespaces for new code.
711
- Do not allow unused `using` directives to be committed.
12+
- Commit your changes, and then format them.
13+
- Add the format commit SHA to the .git-blame-ignore-revs file so that the commit doesn't dirty git blame in the future
14+
- Use `#if NET` blocks for .NET Core specific code, and `#if NETFRAMEWORK` for .NET Framework specific code.
815

916
Testing:
1017
- Large changes should always include test changes.

0 commit comments

Comments
 (0)