Visual Studio 2019中的Blazor WebAssembly .NET 5模板 [英] Blazor WebAssembly .NET 5 template in Visual Studio 2019
问题描述
如何更新Visual Studio Blazor WASM模板,以便新创建的项目使用.NET 5?现在,当我创建Blazor WebAssembly项目时,是否将它设置为服务器的.NET Core 3.1和客户端的.NET Standard 2.1?
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?
我认为新模板还将已经实现从.NET Core 3.1升级到.NET 5所需的更改.
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请参阅所附的屏幕快照,其中显示了Blazor的当前模板-今天上午我在VS 2019 Community 16.8.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.
请注意Net5.0顶部的下拉列表和底部5.0.3的模板编号.
Note the dropdown at the top for Net5.0 and the Template No in the bottom corner 5.0.3.
也:
- 确保已安装5.0.3版本的DotNetCore
- 您正在运行16.8.5 Visual Studio
这篇关于Visual Studio 2019中的Blazor WebAssembly .NET 5模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!