Blazorise Templates Guide

The Blazorise Templates allows you to quickly setup a Blazor project of your choice (Server or WebAssembly), with any of our Providers, and with a default starting look.

The Blazorise Templates are based on the dotnet templates feature.

Install packages

You do so by using the CLI dotnet new install feature.
dotnet new install Blazorise.Templates

Versioning

We use our Templates versioning to match & install the latest corresponding Blazorise major & minor version.

For example:

  • Blazorise.Templates: 1.1.* will always try to install the latest 1.1 Blazorise
  • Blazorise.Templates: 1.2.* will always try to install the latest 1.2 Blazorise
  • Blazorise.Templates: 1.3.* will always try to install the latest 1.3 Blazorise
  • and so on...

If you want to install a specific version, you may do so by passing in the desired version.

dotnet new install Blazorise.Templates::1.1.0

Create New Project

With Blazorise.Templates installed you may now use the CLI or the Visual Studio IDE to create your new Blazorise solution!

Both options provide you with several parameters to create a new Blazorise solution. In this document you will find some sample commands to create your customized solution.

CLI

Blazorise CLI is the fastest way to start a new solution with the Blazorise components.

The new blazorise command creates a Blazorise solution or other artifacts based on an Blazorise template. Take note that you may ommit the options and the defaults for those will be considered.

dotnet new blazorise -n MyNewBlazoriseApp -p Bootstrap5 -bh Server -ut false -f net10.0

Visual Studio IDE

When creating a new Project, you will find a new Project Type, Blazorise App.

Blazorise Templates

After choosing the project type you will be presented with extra options to customize your project.

Blazorise Templates Options

Options

NameDefaultType
-fnet10.0Choice

The target framework for the project.

  • net8.0
  • net9.0
  • net10.0

-bhServerChoice

Specifies the project blazor host type.

  • Server
  • WebAssembly
  • WebApp (It is of note that this option mirrors the new .NET8 blazor web app template with the RenderMode feature and is adapted to work with Blazorise, and as such is only supported in .NET8 and newer)

-pServerChoice

Specifies the Blazorise CSS provider that will be used to render components.

  • Bootstrap4
  • Bootstrap5
  • Tailwind
  • Material
  • AntDesign
  • Bulma
  • FluentUI2

-mcpGitHubChoice

Specifies the MCP client configuration generated for Blazorise documentation support.

The generated project includes a .mcp.json file configured for the selected client type.

  • GitHub - GitHub.com coding agent configuration using mcpServers and tools.
  • Http - Streamable HTTP MCP transport configuration.
  • Sse - SSE MCP transport configuration.

-uttruebool

Whether the program entry point, should use top level statements.
-tcolor-primary#0288D1string

The Theme's starting primary color.
-tcolor-secondary#A65529string

The Theme's starting secondary color.
-tcolor-success#23C02Estring

The Theme's starting success color.
-tcolor-info#9BD8FEstring

The Theme's starting info color.
-tcolor-warning#F8B86Cstring

The Theme's starting warning color.
-tcolor-danger#F95741string

The Theme's starting danger color.
-tcolor-light#F0F0F0string

The Theme's starting light color.
-tcolor-dark#535353string

The Theme's starting dark color.