dotnet CLI

The dotnet command-line tool that creates, restores, builds, runs, tests and publishes .NET projects.

In more detail

Every task in this course starts from it: dotnet new scaffolds a project, dotnet run builds and starts it, and dotnet test runs tests. dotnet --version shows which SDK it will use, and dotnet --list-sdks and dotnet --list-runtimes show everything installed.

Examples

dotnet --version
dotnet --list-sdks
dotnet --list-runtimes

Related terms

Taught in

References