From 1a2ab5a10bb779c03f3e1e4099d77a3a7965e4c0 Mon Sep 17 00:00:00 2001 From: odalet Date: Sat, 23 Jan 2021 17:25:54 +0100 Subject: [PATCH] Generated files now have a '.g.cs' extension --- src/Microsoft.Windows.CsWin32/Generator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.Windows.CsWin32/Generator.cs b/src/Microsoft.Windows.CsWin32/Generator.cs index 54063e27..7ba418d0 100644 --- a/src/Microsoft.Windows.CsWin32/Generator.cs +++ b/src/Microsoft.Windows.CsWin32/Generator.cs @@ -579,7 +579,8 @@ public IReadOnlyDictionary 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(StringComparer.OrdinalIgnoreCase); if (this.options.EmitSingleFile)