1

I'm trying to test the new dotnet 6 feature with hosting blazor in desktop applications, according to this article.

So im trying to use the command

dotnet new blazorhybrid -o BlazorHybrid

which does not work since i do not have the template it seems.

When searching for it with

dotnet new blazorhybrid --search

I can find the template which I am looking for. The command gives the instuction to install the template with

dotnet new --install Microsoft.MobileBlazorBindings.Templates

which seems to do nothing but listing my current available templates. So, how do I install this template? Am I missing some kind of prerequisite? I have net6 preview 1 installed.

1 Answer 1

1

The latest project templates for Mobile Blazor Bindings, including the hybrid template, is dotnet new -i Microsoft.MobileBlazorBindings.Templates::0.5.50-preview. See the Get Started documentation for more info.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, adding the version part solved it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.