Skip to content

Commit 09d1811

Browse files
committed
Renamed all generated *.cs files to *.g.cs
Like the auto-generated tag in the file's header, this causes files to be recognized as auto-generated code by Visual Studio. An added bonus of the filename change is that these files can be treated differently based on the filename in your project's .gitignore or .editorconfig files
1 parent 149e250 commit 09d1811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public CSharpNamespaceOutputManager(final String baseDirName, final String packa
7171
*/
7272
public Writer createOutput(final String name) throws IOException
7373
{
74-
final File targetFile = new File(outputDir, name + ".cs");
74+
final File targetFile = new File(outputDir, name + ".g.cs");
7575
return Files.newBufferedWriter(targetFile.toPath(), StandardCharsets.UTF_8);
7676
}
7777
}

0 commit comments

Comments
 (0)