Skip to content

Instantly share code, notes, and snippets.

@dapperdandev
Last active July 31, 2019 03:55
Show Gist options
  • Save dapperdandev/84ded99b78373996cea5f2b302308282 to your computer and use it in GitHub Desktop.
Save dapperdandev/84ded99b78373996cea5f2b302308282 to your computer and use it in GitHub Desktop.
Installing .NET Core Preview + Blazor Template

Installing .NET Core Preview + Blazor Template on Ubuntu 18.04.2 LTS

Install .NET Core

Installing the latest preview

sudo snap install dotnet-sdk --beta --classic

Installing from tarball

  1. 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
  2. sudo tar -zxf dotnet-sdk-3.0.100-preview6-012264-linux-x64.tar.gz -C /usr/share/dotnet/
  3. sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

Installing Blazor Templates

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

Create a project

Plan for growth.

  • mkdir MyBlazorApp
  • cd MyBlazorApp
  • dotnet new sln
  • dotnet new blazor --name=MyBlazorApp.Client
  • dotnet sln add MyBlazorApp.Client/MyBlazorApp.Client.csproj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment