Visual Studio 2017 Blazor项目模板丢失 [英] Visual Studio 2017 Blazor Project Templates Missing
问题描述
我正在探索为正在使用Visual Studio 2017(15.9.4)进行的测试项目构建Blazor SPA应用程序.我已经安装了 .NET Core 2.2.1和
I'm exploring building a Blazor SPA app for a test project I'm working on using Visual Studio 2017 (15.9.4). I have installed .NET Core 2.2.1 and the Blazor Language Services extension but when I open Visual Studio to create a new project, no Blazor template is shown. I was able to create a project using the CLI but when I open the project in Visual Studio it gives several errors inside even though the project runs. There are also no Blazor page templates available when I try to New Item. What can I do to get the templates to load in Visual Studio?
推荐答案
好的,所以我知道了.我转到文件>>新建>>项目,选择"ASP.Net Core Web应用程序",然后在下一个窗口中,我必须将"ASP.NET Core 2.2"更改为"ASP.NET Core 2.1",然后在那里有了模板.
Okay, so I figured it out. I went to File >> New >> Project, selected "ASP.Net Core Web Application" then on the next window I had to change "ASP.NET Core 2.2" to "ASP.NET Core 2.1", then the templates were there.
这篇关于Visual Studio 2017 Blazor项目模板丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!