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?
答案 0 :(得分:0)
这可能是由于从较早版本的VS和.Net Core升级而发生的
尝试以下两种方法之一: 1.在global.json文件中,将.Net Core版本更改为2.2.100,如下所示:
{
"sdk": {
"version": "2.2.100"
}
}
2。如果仍然无法解决问题,则将其完全删除。
希望这对您有帮助...
答案 1 :(得分:0)