Blazor now in official preview

Some days ago, the ASP.NET team announce the official preview of Blazor, the Microsoft framework for building Single Page Application. Note that in the post, they declare that Server-Side Blazor will ship as part of .NET Core 3.0, announced for second half 2019, while Client-side Blazor will ship as part of a future .NET Core release.

Upgrade to Blazor preview

To upgrade your existing Blazor apps to the new Blazor preview first make sure you’ve installed the prerequisites listed above then follow these steps:

Replace this:

app.UseMvc(routes =>
    routes.MapRoute(name: "default", template: "{controller}/{action}/{id?}");

With this:


app.UseEndpoints(routes =>

Run dotnet clean on the solution to clear out old Razor declarations.


Found a problem? Edit this post