简体   繁体   中英

Blazor WebAssembly .NET 5 template in Visual Studio 2019

How can I update my Visual Studio Blazor WASM template so the newly created project uses .NET 5? When I create a Blazor WebAssembly project now it is set to .NET Core 3.1 for Server and .NET Standard 2.1 for client?

New template I guess would also have the changes already implemented that was needed to upgrade from .NET Core 3.1 to .NET 5.

FYI See the attached screenshot which shows the current Template for Blazor - I ran this this morning on VS 2019 Community 16.8.5.

Note the dropdown at the top for Net5.0 and the Template No in the bottom corner 5.0.3.

Also:

  1. Make sure you have 5.0.3 version of DotNetCore installed
  2. You are running 16.8.5 Visual Studio

Blazor 模板

点网版

VS 2019版

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