Skip to content

About

blazor-toolkit-templates

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

44 Commits

Folders and files

Repository files navigation

Blazor_Toolkit_Banner

Syncfusion Blazor Toolkit Templates

License: MIT Latest Release Package: GitHub Packages .NET 8

Templates for creating Blazor applications using the Syncfusion Blazor Toolkit. Pre-configured with Syncfusion components, theming, and project structure so you can start building apps immediately.

Prerequisites

  • Either one of the SDK's .NET 8, .NET 9, .NET 10
  • Visual Studio 2026, JetBrains Rider, or Visual Studio Code

Getting Started

Installation

dotnet new install Syncfusion.Blazor.Toolkit.Templates

Updating the Template

If you already installed Syncfusion.Blazor.Toolkit.Templates and want the latest version, update your installed template packages with:

dotnet new update

This checks installed template packages and installs available updates. To preview updates without changing anything:

dotnet new update --check-only

To verify which versions/templates are installed / available:

dotnet new list blazortoolkit

To reinstall manually (for example, to pin a specific version):

dotnet new uninstall Syncfusion.Blazor.Toolkit.Templates
dotnet new install Syncfusion.Blazor.Toolkit.Templates

Install a specific version:

dotnet new install Syncfusion.Blazor.Toolkit.Templates::<version>

Note: dotnet new update updates all installed template packages, not just Syncfusion.Blazor.Toolkit.Templates.

Templates

Template Description
blazortoolkitweb Blazor Web App with server-side rendering and optional WebAssembly interactivity
blazortoolkitwasm Blazor WebAssembly Standalone App with Progressive Web App (PWA) support

Usage

Common Commands

Create a new Blazor Web App (default is Server interactivity):

dotnet new blazortoolkitweb -o MyApp

Create a static server-rendered app (no interactivity):

dotnet new blazortoolkitweb -o MyApp -int None

Create a Blazor Web App with per-page interactive components:

dotnet new blazortoolkitweb -o MyApp -int Auto

Create a Blazor Web App with interactive rendering enabled globally:

dotnet new blazortoolkitweb -o MyApp -int Auto -ai

Create a new standalone WebAssembly app:

dotnet new blazortoolkitwasm -o MyApp
cd MyApp
dotnet watch run

Create a standalone WebAssembly PWA:

dotnet new blazortoolkitwasm -o MyApp --pwa

Create an empty starter (omit sample pages and demo styling):

dotnet new blazortoolkitweb -o MyApp -e
dotnet new blazortoolkitwasm -o MyApp -e

Create an app without HTTPS (for local development only):

dotnet new blazortoolkitweb -o MyApp --no-https
dotnet new blazortoolkitwasm -o MyApp --no-https

The --no-https option removes the HTTPS launch profile while keeping the HTTP profile, so the app still runs in the Development environment with its static web assets available.

Create an app using explicit Program.Main:

dotnet new blazortoolkitweb -o MyApp --use-program-main
dotnet new blazortoolkitwasm -o MyApp --use-program-main

Options

Option Values / Type Default Description / Notes
-int, --interactivity Auto, None, Server, WebAssembly Server Selects the interactive render mode. Use None for static SSR only.
-ai, --all-interactive bool false Applies interactivity globally (root-level). Only enabled when interactivity is not None.
-e, --empty bool false Omits sample pages and demo styling.
--no-https bool false Disables HTTPS for local development.
--exclude-launch-settings bool false Excludes Properties/launchSettings.json from generated output.
--no-restore bool false Skips automatic dotnet restore after project creation.
--use-program-main bool false Generates an explicit Program class and Main method instead of top-level statements.

For the complete option list:

dotnet new blazortoolkitweb --help
dotnet new blazortoolkitwasm --help

Visual Studio Templates

The templates can also be used in Visual Studio and should show up in the Create a new project template list. CLI examples are the best reference for advanced combinations and flags.

Template Configuration

The Syncfusion Blazor Toolkit templates include:

  • Server-Side Rendering (SSR): Default web app template with optional client interactivity
  • WebAssembly Interactivity: Full-featured WASM support with shared component code
  • Syncfusion Components: Pre-configured with Syncfusion Blazor Toolkit components
  • Launch Settings: Customizable Blazor launch profiles with configurable ports
  • Sample Content: Optional demo pages and styling (use -e / --empty to skip)

Contributing

Installing directly from Source Code

If you want to test changes to the template source code that haven't been published yet, clone the repository and install locally:

git clone https://github.com/syncfusion/blazor-toolkit-templates.git
cd blazor-toolkit-templates
dotnet new uninstall Syncfusion.Blazor.Toolkit.Templates
dotnet new install .

To verify the templates are installed:

dotnet new list blazortoolkit

About

blazor-toolkit-templates

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages