-
Book Overview & Buying
-
Table Of Contents
Web Development with Blazor - Fourth Edition
By :
Many other frameworks has a CLI to create projects, add references and so on, and .NET has one too.
The .NET Command Line Interface or .NET CLI, accessed through dotnet.exe, is a powerful, cross-platform tool for working with .NET projects. Developers familiar with .NET Core may already know it, but starting with .NET 5, the CLI is no longer limited to .NET Core scenarios.
The CLI can perform many of the same tasks as Visual Studio, such as creating projects and managing NuGet packages. In the following example, we create a Blazor application using the dotnet command. This project is for demonstration purposes only and is not used later in the book.
To create a Blazor application, run the following command:
dotnet new blazor -o BlazorWebApp
The .NET CLI works on Windows, Linux, and macOS. While we do not explore it in depth in this book, it is worth knowing that it provides extensive functionality for project creation and management.
The .NET CLI is designed...