-
Book Overview & Buying
-
Table Of Contents
Enterprise Application Development with C# 10 and .NET 6 - Second Edition
By :
The .NET CLI is a cross-platform, command-line interface tool available to develop, build, run, and publish .NET applications. It is included in the .NET SDK.
The CLI command structure contains command driver (dotnet), command, command-arguments, and options, and this is a common pattern for most CLI operations. Refer to the following command pattern:
driver command <command-arguments> <options>
For instance, the following command creates a new console application. dotnet is the driver, new is the command, and console is a template name as an argument:
dotnet new console
The following table illustrates a few commands and a short description of the commands that are supported by the CLI:
Table 2.3 – CLI commands
Let's create a simple console application and run it using the .NET CLI:
Note
To perform the following steps, as a prerequisite, you should have the .NET SDK installed on your machine...