Reputation: 3064
I'm trying to create a new .net core Blazor WebAssembly App with VS 2019 following this but so far I have had no luck.
As indicated in these docs, I've downloaded the latest preview VS 2019 Professional and typed this on a command window:
dotnet new blazorwasm --hosted
But I keep getting the following error:
No templates matched the input template name: blazorwasm.
This Blazor webAssembly feature is on preview -- it was only released very recently -- and hence understandably prone to errors, but still MS documentation normally is quite accurate, so I'm surprised this is not working as per their explanation.
I would appreciate any help with this.
Upvotes: 2
Views: 6162
Reputation: 1401
You need .NET SDK 3.1.300 [C:\Program Files\dotnet\sdk]
to use dotnet new blazorwasm --hosted
. You can view your installed version by running dotnet --info
.
To update, eather download from: https://dotnet.microsoft.com/download/visual-studio-sdks
Or update vistual studio to version 16.6 or greater.
Upvotes: 3