Blazor WebAssembly template not found in Blazor new project

只愿长相守 提交于 2021-01-28 05:36:52

问题


I have installed dotnet SDK 3.1.201 to Microsoft Visual Studio Professional 2019 Version 16.5.4 and I installed this template dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-preview5.20216.8 after that I statred to create a new Blazor project in VS just only contains the Blazor Server App template I didn't find the Blazor WebAssembly App template what is wrong with all steps that I have done.


回答1:


I have the same problem when I tried to install the template, my problem was I made a simple Nuget package for myself but it was deleted in Nuget Package Manager if you have any package that not available please delete it. I have this error during install the Blazor template ( error : The local source 'C:\Users\mypc\Desktop\dotnet-standard-getting-started\demos\Testingapp.Storage\bin\Debug' doesn't exist. ) Tools ---> Options ---> under Nuget Package Manager




回答2:


You need the preview version of Visual Studio (16.6)

If you’re on Windows using Visual Studio, we recommend installing the latest preview of Visual Studio 2019 16.6. For this preview, you should still install the template from the command-line as described above to ensure that the Blazor WebAssembly template shows up correctly in Visual Studio and on the command-line.

https://devblogs.microsoft.com/aspnet/blazor-webassembly-3-2-0-preview-5-release-now-available/




回答3:


Before you select Blazor project type (Server or Web-Assembly step) just flip between frameworks (3.0 and 3.1), the menu will be updated and you will be able to see WASM Blazor version:



来源:https://stackoverflow.com/questions/61523181/blazor-webassembly-template-not-found-in-blazor-new-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!