Skip to content

.NET 6 template changes for dotnet new console #25085

@BillWagner

Description

@BillWagner

For .NET 6, in preview 7, the “dotnet new console” app and Visual Studio’s “File:New Project” template for console apps will use top level statements.

We expect new developers to find this confusing if they are following an existing tutorial that shows the earlier Program.cs generated by those templates.

We need a new doc that helps these customers map from the tutorial text (using static void Main() in a Program class in a namespace) to the new output using top-level statements.

This new article will be linked from an aka.ms link that describes the changes.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions