diff --git a/sandbox/GeneratorSandbox/GeneratorSandbox.csproj b/sandbox/GeneratorSandbox/GeneratorSandbox.csproj index 7a583a9..24c9fbe 100644 --- a/sandbox/GeneratorSandbox/GeneratorSandbox.csproj +++ b/sandbox/GeneratorSandbox/GeneratorSandbox.csproj @@ -4,7 +4,7 @@ Exe net8.0 enable - enable + disable true 1701;1702;CS8321 false diff --git a/sandbox/GeneratorSandbox/Program.cs b/sandbox/GeneratorSandbox/Program.cs index f9b6664..86d3911 100644 --- a/sandbox/GeneratorSandbox/Program.cs +++ b/sandbox/GeneratorSandbox/Program.cs @@ -31,7 +31,8 @@ public void Handle( bool a16, bool a17, bool a18, - bool a19 + bool a19, + string foo = null ) { Console.Write("ok"); diff --git a/src/ConsoleAppFramework/ConsoleAppGenerator.cs b/src/ConsoleAppFramework/ConsoleAppGenerator.cs index 56468e5..14d78c6 100644 --- a/src/ConsoleAppFramework/ConsoleAppGenerator.cs +++ b/src/ConsoleAppFramework/ConsoleAppGenerator.cs @@ -556,6 +556,7 @@ static void EmitConsoleAppTemplateSource(IncrementalGeneratorPostInitializationC #pragma warning disable CS9074 // The 'scoped' modifier of parameter doesn't match overridden or implemented member #pragma warning disable CA1050 // Declare types in namespaces. #pragma warning disable CS1998 +#pragma warning disable CS8625 namespace ConsoleAppFramework;