
Enterprise Application Development with C# 9 and .NET 5
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
Let's create a simple console application and run it using the .NET CLI:
Note
To perform the following steps, as a pre requisite, you should have the .NET SDK installed on your machine. You can download and install it from https://dotnet.microsoft.com/download/dotnet...