Skip to content

Commit

Permalink
Merge pull request #58 from odalet/generatedFilesExtension
Browse files Browse the repository at this point in the history
Generated files now have a '.g.cs' extension
  • Loading branch information
AArnott committed Jan 23, 2021
2 parents c1083cc + 1a2ab5a commit a9c8eb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Microsoft.Windows.CsWin32/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ public bool TryGenerateConstant(string name)
{
var starterNamespace = NamespaceDeclaration(ParseName(this.Namespace));

const string FilenamePattern = "{0}.cs";
// .g.cs because the resulting files are not user-created.
const string FilenamePattern = "{0}.g.cs";
var results = new Dictionary<string, NamespaceDeclarationSyntax>(StringComparer.OrdinalIgnoreCase);

if (this.options.EmitSingleFile)
Expand Down

0 comments on commit a9c8eb3

Please sign in to comment.