简体   繁体   中英

How to start a Blazor Webassembly project in Visual Studio 2019

I can't start a Blazor project in Visual Studio.

Visual Studio version: Community 2019 (16.6.4)

I have tried:

  • Find out if Blazor templates are limited to Professional or Enterprise VS installations.
  • Repairing using the installer
  • Running the following command as recommended by other solutions: dotnet new --install Microsoft.AspNetCore.Blazor.Templates::3.2.0-preview1.20073.1 in both the NuGet CLI and CMD.

No matter what I do, I don't see anything related to Blazor when I click "Create a new project" in Visual Studio.

To start a Blazor Webassembly project in Visual Studio 2019 you will need to install the WebAssembly template from the command line, to install the latest preview execute the following command via the Package Manager Console in Visual Studio.

dotnet new --install Microsoft.AspNetCore.Blazor.Templates::3.1.0-preview3.19555.2

With the WebAssembly template installed, you can now create a client-side Blazor project. Start by creating a new Blazor App project.

在此处输入图像描述

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM