Skip to content

Commit 026ef57

Browse files
Copilotstephentoub
andauthored
Remove legacy console template comment from .NET 10 console template (#51527)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent 6a6992f commit 026ef57

File tree

13 files changed

+13
-31
lines changed
  • template_feed/Microsoft.DotNet.Common.ProjectTemplates.10.0/content/ConsoleApplication-CSharp
  • test
    • TestAssets/TestProjects
      • ArtifactsSdkTest/PackageReference
      • ClassLibraryWithIsTestProjectAndOtherTestProjects/OtherTestProject
      • EndToEndTestApp
      • HybridTestRunnerTestProjects/OtherTestProject
      • SolutionWithAppAndDcProj/SampleApp
      • TestAppWithSlnUsingPublishReleaseConflictingCasing/App2
      • TestProjectSolutionWithTestsAndArtifacts/TestProject
    • dotnet-new.IntegrationTests/Approvals
      • AotVariants.console.cs.verified/MyProject
      • AotVariants.console.vb.verified/MyProject
      • FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-False#FileScopedNs-False#cs.verified/MyProject
      • FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#cs#NoLangVer.verified/MyProject
      • FeaturesSupport.console.Nullable-True#TopLevel-True#ImplicitUsings-True#FileScopedNs-True#cs.verified/MyProject

13 files changed

+13
-31
lines changed

template_feed/Microsoft.DotNet.Common.ProjectTemplates.10.0/content/ConsoleApplication-CSharp/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#if (csharpFeature_TopLevelProgram)
2-
// See https://aka.ms/new-console-template for more information
3-
#endif
4-
#if (!csharpFeature_ImplicitUsings)
1+
#if (!csharpFeature_ImplicitUsings)
52
using System;
63

74
#endif
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// See https://aka.ms/new-console-template for more information
2-
Console.WriteLine("Hello, World!");
1+
Console.WriteLine("Hello, World!");

test/TestAssets/TestProjects/ClassLibraryWithIsTestProjectAndOtherTestProjects/OtherTestProject/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//See https://aka.ms/new-console-template for more information
2-
3-
//Opt -out telemetry
1+
//Opt -out telemetry
42

53
using Microsoft.Testing.Platform.Builder;
64
using Microsoft.Testing.Platform.Capabilities.TestFramework;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// See https://aka.ms/new-console-template for more information
2-
Console.WriteLine("Hello, World!");
1+
Console.WriteLine("Hello, World!");

test/TestAssets/TestProjects/HybridTestRunnerTestProjects/OtherTestProject/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//See https://aka.ms/new-console-template for more information
2-
3-
//Opt -out telemetry
1+
//Opt -out telemetry
42

53
using Microsoft.Testing.Platform.Builder;
64
using Microsoft.Testing.Platform.Capabilities.TestFramework;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// See https://aka.ms/new-console-template for more information
2-
Console.WriteLine("Hello, World!");
1+
Console.WriteLine("Hello, World!");
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// See https://aka.ms/new-console-template for more information
2-
Console.WriteLine("Hello, World!");
1+
Console.WriteLine("Hello, World!");

test/TestAssets/TestProjects/TestProjectSolutionWithTestsAndArtifacts/TestProject/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
//See https://aka.ms/new-console-template for more information
2-
3-
//Opt -out telemetry
1+
//Opt -out telemetry
42

53
using Microsoft.Testing.Extensions;
64
using Microsoft.Testing.Platform.Builder;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// See https://aka.ms/new-console-template for more information
2-
Console.WriteLine("Hello, World!");
1+
Console.WriteLine("Hello, World!");
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// See https://aka.ms/new-console-template for more information
2-
Console.WriteLine("Hello, World!");
1+
Console.WriteLine("Hello, World!");

0 commit comments

Comments
 (0)