Reputation: 5901
It seems like a fairly easy Task, but for some reason Visual Studio does not show me any Blazor templates besides the server-side hosting model.
3.0.100-preview6-012264
from dotnet --version
. 16.1.6
.Then I tried it in the CLI with the following command dotnet new blazorhosted
like shown in the MSDN. It will only bring up the following error No templates matched the input template name: blazorhosted.
and a list of available templates. But I did manage to create the 'client-side' hosting-model e.g. dotnet new blazor
, which isn't displayed in VS as well.
I also tried to reinstall .Net Core Preview 6 as well as Visual Studio 2019, but with no success
Upvotes: 1
Views: 691
Reputation: 14060
I think you will need to first install the new blazor template:
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview6.19307.2
Upvotes: 4