Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running blazor on macOS

Is there a way to develop with blazor on mac? I saw the getting started guide and the first problem I saw was that there is no template in the visual studio for mac or ASP.NET Core Blazor Language Services*** extension to be able to run it.

If there is a way can you give me some beginner steps to start a simple project ?

like image 761
Yordan Kanchelov Avatar asked Sep 10 '18 16:09

Yordan Kanchelov


People also ask

Can Blazor run on Mac?

ASP.NET Core Blazor supports two different hosting options; Blazor WebAssembly (WASM) or Blazor Server. Visual Studio for Mac supports both hosting models. Visual Studio for Mac 8.4+ supports Blazor Server and Visual Studio for Mac 8.6+ supports both.

Is Blazor still experimental?

No longer experimental Blazor is GO GO GO.

Is Blazor SEO friendly?

Blazor Server does support SEO. However, the default template for Blazor Server does not support SEO and you have to implement it yourself.


1 Answers

Have a look at the available templates: https://github.com/dotnet/templating/wiki/Available-templates-for-dotnet-new

In your case it would be: dotnet new -i Microsoft.AspNetCore.Blazor.Templates::*

The documentation on blazor.net can help you get started, scroll down to where it shows you how to create via command line.

like image 121
penleychan Avatar answered Sep 23 '22 13:09

penleychan