Skip to content

Commit

Permalink
Renamed all generated *.cs files to *.g.cs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mhoogveld committed Aug 24, 2020
1 parent a12a5c1 commit 553c40a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public CSharpNamespaceOutputManager(final String baseDirName, final String packa
*/
public Writer createOutput(final String name) throws IOException
{
final File targetFile = new File(outputDir, name + ".cs");
final File targetFile = new File(outputDir, name + ".g.cs");
return Files.newBufferedWriter(targetFile.toPath(), StandardCharsets.UTF_8);
}
}

0 comments on commit 553c40a

Please sign in to comment.