From cfce2bcea70b60e4bec4a974fb045960c05a27da Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Thu, 1 Aug 2024 10:21:41 -0500 Subject: [PATCH 1/3] Update Program.cs --- .../content/ConsoleApplication-CSharp/Program.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.9.0/content/ConsoleApplication-CSharp/Program.cs b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.9.0/content/ConsoleApplication-CSharp/Program.cs index 92fcfc5de14b..0c9389559dd6 100644 --- a/template_feed/Microsoft.DotNet.Common.ProjectTemplates.9.0/content/ConsoleApplication-CSharp/Program.cs +++ b/template_feed/Microsoft.DotNet.Common.ProjectTemplates.9.0/content/ConsoleApplication-CSharp/Program.cs @@ -1,7 +1,4 @@ -#if (csharpFeature_TopLevelProgram) -// See https://aka.ms/new-console-template for more information -#endif -#if (!csharpFeature_ImplicitUsings) +#if (!csharpFeature_ImplicitUsings) using System; #endif From 9a1df5ae124434de1cc94ebebee0cc814288f408 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Fri, 23 Aug 2024 15:09:42 -0500 Subject: [PATCH 2/3] Remove more template expectations --- ...icrosoft.NET.Build.Containers.buildschema.json | 15 +++++++++++++++ .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- .../MyProject/Program.cs | 3 +-- 13 files changed, 27 insertions(+), 24 deletions(-) create mode 100644 src/Containers/packaging/build/Microsoft.NET.Build.Containers.buildschema.json diff --git a/src/Containers/packaging/build/Microsoft.NET.Build.Containers.buildschema.json b/src/Containers/packaging/build/Microsoft.NET.Build.Containers.buildschema.json new file mode 100644 index 000000000000..d4328d531e65 --- /dev/null +++ b/src/Containers/packaging/build/Microsoft.NET.Build.Containers.buildschema.json @@ -0,0 +1,15 @@ +{ + "properties": { + "EnableSdkContainerSupport": { + "type": "bool", + "defaultValue": "false", + "description": "Enables the ability to package a project in a container. This is enabled by default if the project is an ASP.NET project or a Worker Project, or if the project includes a references to the Microsoft.NET.Build.Containers package." + }, + "ContainerBaseImage": { + "type": "string", + "defaultValue": "mcr.microsoft.com/dotnet/runtime:8.0", + "description": "The base image to build the application container onto. If not specified the SDK will infer the best base image for your application.", + "helpUrl": "https://github.com/dotnet/sdk-container-builds/blob/main/docs/ContainerCustomization.md#containerbaseimage" + } + } +} \ No newline at end of file diff --git a/test/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/Program.cs index 3751555cbd32..1bc52a60a8ba 100644 --- a/test/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/Program.cs @@ -1,2 +1 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/Program.cs index 3751555cbd32..1bc52a60a8ba 100644 --- a/test/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/AotVariants.console.vb.verified/MyProject/Program.cs @@ -1,2 +1 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net6.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net6.0#cs.verified/MyProject/Program.cs index ea0a451f4903..26e5e42eee3b 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net6.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net6.0#cs.verified/MyProject/Program.cs @@ -1,4 +1,3 @@ -// See https://aka.ms/new-console-template for more information -using System; +using System; Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net7.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net7.0#cs.verified/MyProject/Program.cs index ea0a451f4903..26e5e42eee3b 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net7.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net7.0#cs.verified/MyProject/Program.cs @@ -1,4 +1,3 @@ -// See https://aka.ms/new-console-template for more information -using System; +using System; Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net8.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net8.0#cs.verified/MyProject/Program.cs index ea0a451f4903..26e5e42eee3b 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net8.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net8.0#cs.verified/MyProject/Program.cs @@ -1,4 +1,3 @@ -// See https://aka.ms/new-console-template for more information -using System; +using System; Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#cs.verified/MyProject/Program.cs index ea0a451f4903..26e5e42eee3b 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#cs.verified/MyProject/Program.cs @@ -1,4 +1,3 @@ -// See https://aka.ms/new-console-template for more information -using System; +using System; Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs#NoLangVer.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs#NoLangVer.verified/MyProject/Program.cs index 3751555cbd32..1bc52a60a8ba 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs#NoLangVer.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs#NoLangVer.verified/MyProject/Program.cs @@ -1,2 +1 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs.verified/MyProject/Program.cs index 3751555cbd32..1bc52a60a8ba 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs.verified/MyProject/Program.cs @@ -1,2 +1 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs#NoLangVer.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs#NoLangVer.verified/MyProject/Program.cs index 3751555cbd32..1bc52a60a8ba 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs#NoLangVer.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs#NoLangVer.verified/MyProject/Program.cs @@ -1,2 +1 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs.verified/MyProject/Program.cs index 3751555cbd32..1bc52a60a8ba 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs.verified/MyProject/Program.cs @@ -1,2 +1 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs#NoLangVer.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs#NoLangVer.verified/MyProject/Program.cs index 3751555cbd32..1bc52a60a8ba 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs#NoLangVer.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs#NoLangVer.verified/MyProject/Program.cs @@ -1,2 +1 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs.verified/MyProject/Program.cs index 3751555cbd32..1bc52a60a8ba 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs.verified/MyProject/Program.cs @@ -1,2 +1 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +Console.WriteLine("Hello, World!"); From 08769823b6c4ec91752d75094cd023f414c3ca24 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Sat, 24 Aug 2024 12:59:44 -0500 Subject: [PATCH 3/3] fix more tests --- .../MyProject/Program.cs | 3 ++- .../MyProject/Program.cs | 3 ++- .../MyProject/Program.cs | 3 ++- .../MyProject/Program.cs | 3 ++- .../MyProject/Program.cs | 3 ++- .../MyProject/Program.cs | 3 ++- .../MyProject/Program.cs | 3 ++- .../MyProject/Program.cs | 3 ++- .../MyProject/Program.cs | 3 ++- .../MyProject/Program.cs | 3 ++- 10 files changed, 20 insertions(+), 10 deletions(-) diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net6.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net6.0#cs.verified/MyProject/Program.cs index 26e5e42eee3b..ea0a451f4903 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net6.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net6.0#cs.verified/MyProject/Program.cs @@ -1,3 +1,4 @@ -using System; +// See https://aka.ms/new-console-template for more information +using System; Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net7.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net7.0#cs.verified/MyProject/Program.cs index 26e5e42eee3b..ea0a451f4903 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net7.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net7.0#cs.verified/MyProject/Program.cs @@ -1,3 +1,4 @@ -using System; +// See https://aka.ms/new-console-template for more information +using System; Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net8.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net8.0#cs.verified/MyProject/Program.cs index 26e5e42eee3b..ea0a451f4903 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net8.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#Framework-net8.0#cs.verified/MyProject/Program.cs @@ -1,3 +1,4 @@ -using System; +// See https://aka.ms/new-console-template for more information +using System; Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#cs.verified/MyProject/Program.cs index 26e5e42eee3b..ea0a451f4903 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#cs.verified/MyProject/Program.cs @@ -1,3 +1,4 @@ -using System; +// See https://aka.ms/new-console-template for more information +using System; Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs#NoLangVer.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs#NoLangVer.verified/MyProject/Program.cs index 1bc52a60a8ba..3751555cbd32 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs#NoLangVer.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs#NoLangVer.verified/MyProject/Program.cs @@ -1 +1,2 @@ -Console.WriteLine("Hello, World!"); +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs.verified/MyProject/Program.cs index 1bc52a60a8ba..3751555cbd32 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net6.0#cs.verified/MyProject/Program.cs @@ -1 +1,2 @@ -Console.WriteLine("Hello, World!"); +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs#NoLangVer.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs#NoLangVer.verified/MyProject/Program.cs index 1bc52a60a8ba..3751555cbd32 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs#NoLangVer.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs#NoLangVer.verified/MyProject/Program.cs @@ -1 +1,2 @@ -Console.WriteLine("Hello, World!"); +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs.verified/MyProject/Program.cs index 1bc52a60a8ba..3751555cbd32 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net7.0#cs.verified/MyProject/Program.cs @@ -1 +1,2 @@ -Console.WriteLine("Hello, World!"); +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs#NoLangVer.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs#NoLangVer.verified/MyProject/Program.cs index 1bc52a60a8ba..3751555cbd32 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs#NoLangVer.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs#NoLangVer.verified/MyProject/Program.cs @@ -1 +1,2 @@ -Console.WriteLine("Hello, World!"); +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs.verified/MyProject/Program.cs b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs.verified/MyProject/Program.cs index 1bc52a60a8ba..3751555cbd32 100644 --- a/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs.verified/MyProject/Program.cs +++ b/test/dotnet-new.Tests/Approvals/FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#Framework-net8.0#cs.verified/MyProject/Program.cs @@ -1 +1,2 @@ -Console.WriteLine("Hello, World!"); +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!");