“CleanBlazor” comes to .NET 7

Francisco Vilches
tech-lah
Published in
2 min readAug 8, 2022

Back in August 2021 I introduced the nuget package CleanBlazor, you can see the details here. TL;DR: CleanBlazor provides the same Blazor templates you get out of the box with .NET minus all the extra boilerplate (bootstrap, counter page, etc.).

The out-of-the-box .NET Blazor templates are great for anyone wanting to fiddle around with Blazor, but CleanBlazor is ideal for anyone who wants to actually build a Blazor project, but without the hassle of cleaning up the extra boilerplate.

Well good news. As of .NET 7, Microsoft is doing just that. Download the latest version here. Now run dotnet new --list . You’ll now notice these 2 new templates.

If you’re using Visual Studio, you’ll also be able to see them.

And that’s it! clean Blazor, from the .NET team, out of the box!

So what happens to the CleanBlazor nuget package?

Since .NET 6 doesn’t have empty Blazor templates, the CleanBlazor nuget package is still an excellent options if you want to get a clean start with .NET 6 projects.

You can check the setup instructions here. It’s easy as pie.

--

--