diff --git a/instructions/csharp.instructions.md b/instructions/csharp.instructions.md index 8d6f4c20c..c44afae73 100644 --- a/instructions/csharp.instructions.md +++ b/instructions/csharp.instructions.md @@ -30,6 +30,7 @@ applyTo: '**/*.cs' - Use pattern matching and switch expressions wherever possible. - Use `nameof` instead of string literals when referring to member names. - Ensure that XML doc comments are created for any public APIs. When applicable, include `` and `` documentation in the comments. +- Add a trailing comma after the last value in multi-line arrays, collection initializers, object initializers, and enum declarations to prevent MA0007 warnings. ## Project Setup and Structure