Skip to content

Commit

Permalink
Generated files now have a '.g.cs' extension
Browse files Browse the repository at this point in the history
  • Loading branch information
odalet committed Jan 23, 2021
1 parent c1083cc commit 1a2ab5a
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 IReadOnlyDictionary<string, CompilationUnitSyntax> GetCompilationUnits(Ca
{
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 1a2ab5a

Please sign in to comment.