If you prefer, you can also get started with Blazor using the command-line interface version of the tutorial.
During installation, the ASP.NET and web development workload should be selected (the installation link above already pre-selects that option).
If you already have Visual Studio 2022, you can add the ASP.NET and web development workload:
To start building .NET apps, download and install the .NET SDK (Software Development Kit).
If you're on a Mac with an Apple M1 chip, you need to install the Arm64 version of the SDK.
Once you've installed, open a new terminal and run the following command:
If the installation succeeded, you should see an output similar to the following:
Usage: dotnet [options] Usage: dotnet [path-to-application] Options: -h|--help Display help. --info Display .NET information. --list-sdks Display the installed SDKs. --list-runtimes Display the installed runtimes. path-to-application: The path to an application .dll file to execute.
If everything looks good, select the Continue button below to go to the next step.
If you receive a zsh: command not found: dotnet error, make sure you opened a new terminal window. If you can't resolve the issue, use the I ran into an issue button to get help fixing the problem.
If you receive a dotnet: command not found error, make sure you opened a new terminal window. If you can't resolve the issue, use the I ran into an issue button to get help fixing the problem.