Get started with Blazor
Blazor is an unsupported experimental web framework that shouldn't be used for production workloads at this time.
Install the following:
- .NET Core 2.1 SDK (2.1.500 or later).
- Visual Studio 2017 (15.9 or later) with the ASP.NET and web development workload selected.
- The latest Blazor Language Services extension from the Visual Studio Marketplace.
The Blazor templates on the command-line:
dotnet new -i Microsoft.AspNetCore.Blazor.Templates
To create your first project from Visual Studio:
- Select File > New Project > Web > ASP.NET Core Web Application.
- Make sure .NET Core and ASP.NET Core 2.1 are selected at the top.
Choose the Blazor template and select OK.
Press Ctrl-F5 to run the app without the debugger. Running with the debugger (F5) isn't supported at this time.
To create a new Blazor app from the command-line:
dotnet new blazor -o BlazorApp1 cd BlazorApp1 dotnet run
Congrats! You just ran your first Blazor app!
Help & feedback
Your feedback is especially important to us during this experimental phase for Blazor. If you run into issues or have questions while trying out Blazor, please let us know!
- File issues on GitHub for any problems you run into or to make suggestions for improvements.
- Chat with us and the Blazor community on Gitter if you get stuck or to share how Blazor is working for you.
After you've tried out Blazor, please let us know what you think by taking our in-product survey. Just click the survey link shown on the app home page when running one of the Blazor project templates: