MR_WELL
MR_WELL

Reputation: 87

Blazor WebAssembly template not found in Blazor new project

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.

Upvotes: 1

Views: 2853

Answers (3)

Hamdan Dabbas
Hamdan Dabbas

Reputation: 605

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:

enter image description here

Upvotes: 0

Rebin Qadir
Rebin Qadir

Reputation: 311

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 Managerenter image description here

Upvotes: 0

tbdrz
tbdrz

Reputation: 2200

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/

Upvotes: 1

Related Questions