sudo snap install dotnet-sdk --beta --classic
- Download the latest sdk from https://dotnet.microsoft.com/download/dotnet-core/3.0
Note the download name. For our purposes, we'll use preview6 as an example sudo tar -zxf dotnet-sdk-3.0.100-preview6-012264-linux-x64.tar.gz -C /usr/share/dotnet/
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
At this point, .net core will be installed with the Blazor (server-side) template. The following command will add 3 more templates:
- Blazor (ASP.NET Core hosted)
A full stack template - Blazor Library
A component library (shareable between Blazor projects) - Blazor (client-side)
A front end template
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview6.19307.2
Plan for growth.
mkdir MyBlazorApp
cd MyBlazorApp
dotnet new sln
dotnet new blazor --name=MyBlazorApp.Client
dotnet sln add MyBlazorApp.Client/MyBlazorApp.Client.csproj