How do you style Blazor components using SASS?

The Web Compiler Visual Studio extension is used to compile the SASS files into CSS without having to install NPM or GULP. Go through the blog Get Some Sass Into Your Blazor App to see how to configure and style Blazor components using SASS.

I’m missing the Blazor template in Visual Studio.

From the official documentation, in order to get started with Blazor, you have to install the latest preview of VS 2019 with the ASP.NET and web development workload along with the Blazor extension. Also, In the Create a new ASP.NET Core Web Application dialog, confirm that .NET Core and ASP.NET Core 3.0 are selected. Refer to this getting started link for more information about Blazor prerequisites.

What if I am unable to run Blazor apps in Visual Studio Code?

There are multiple reasons the Blazor application wouldn’t run in Visual Studio Code. Scenario 1: The omnisharp Visual Studio Code is not installed properly in the machine to run the application. Refer to the getting started with Blazor using Visual Studio Code documentation. Scenario 2: Running a Blazor app with F5 in Visual Studio is not supported in omnisharp, which is tracked in this GitHub issue. For now, you can run the Blazor application using the following dotnet CLI command in the application root folder.