Skip to content

Commit 149e250

Browse files
committed
Added "auto-generated" tag which is recognized by Visual Studio at the top of each generated C# file.
Auto-generated files are not included in automatic code-cleanup and/or inspection processes.
1 parent 3800f72 commit 149e250

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/csharp/CSharpGenerator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,9 @@ private CharSequence generateFileHeader(final String packageName)
614614
}
615615

616616
return String.format(
617-
"/* Generated SBE (Simple Binary Encoding) message codec */\n\n" +
617+
"// <auto-generated>\n" +
618+
"// Generated SBE (Simple Binary Encoding) message codec\n" +
619+
"// </auto-generated>\n\n" +
618620
"#pragma warning disable 1591 // disable warning on missing comments\n" +
619621
"using System;\n" +
620622
"using Org.SbeTool.Sbe.Dll;\n\n" +

0 commit comments

Comments
 (0)