Twenty
Twenty

Reputation: 5901

Creating an Blazor (ASP.NET Core Hosted) project from template Visual Studio

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.

enter image description here

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

Answers (1)

mr.freeze
mr.freeze

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

Related Questions