Create project dotnet
Context: Use dotnet new console with the -n parameter to create a new console app. The project targets .NET 10 by default.
Use dotnet new console with the -n parameter to create a new console application.
Command
Section titled “Command”dotnet new console -n HelloWorldWhat Gets Created
Section titled “What Gets Created”HelloWorld/├── HelloWorld.csproj├── Program.cs└── obj/Navigate and Explore
Section titled “Navigate and Explore”cd HelloWorldls -la
# View the project file
cat HelloWorld.csproj
# View the initial Program.cs
cat Program.csInitial Program.cs (with top-level statements)
Section titled “Initial Program.cs (with top-level statements)”// See https://aka.ms/new-console-template for more informationConsole.WriteLine("Hello, World!");