.NET
Last modified: 2024-07-17
.NET is an application development environment.
Create a .NET Project from Command Line
# Create a new solution file
# -n: The name for the output being created
dotnet new sln -n test
# Create a new .NET project.
# console: Use a template for creating a console application.
dotnet new console -n test
# Add the project to a solution file.
dotnet sln add test/test.csproj
Build/Run
To build and run the project, run the following command in the project directory:
dotnet build
dotnet run