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.
- Either one of the SDK's .NET 8, .NET 9, .NET 10
- Visual Studio 2026, JetBrains Rider, or Visual Studio Code
dotnet new install Syncfusion.Blazor.Toolkit.TemplatesIf you already installed Syncfusion.Blazor.Toolkit.Templates and want the latest version, update your installed template packages with:
dotnet new updateThis checks installed template packages and installs available updates. To preview updates without changing anything:
dotnet new update --check-onlyTo verify which versions/templates are installed / available:
dotnet new list blazortoolkitTo reinstall manually (for example, to pin a specific version):
dotnet new uninstall Syncfusion.Blazor.Toolkit.Templates
dotnet new install Syncfusion.Blazor.Toolkit.TemplatesInstall a specific version:
dotnet new install Syncfusion.Blazor.Toolkit.Templates::<version>Note:
dotnet new updateupdates all installed template packages, not justSyncfusion.Blazor.Toolkit.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 |
Create a new Blazor Web App (default is Server interactivity):
dotnet new blazortoolkitweb -o MyAppCreate a static server-rendered app (no interactivity):
dotnet new blazortoolkitweb -o MyApp -int NoneCreate a Blazor Web App with per-page interactive components:
dotnet new blazortoolkitweb -o MyApp -int AutoCreate a Blazor Web App with interactive rendering enabled globally:
dotnet new blazortoolkitweb -o MyApp -int Auto -aiCreate a new standalone WebAssembly app:
dotnet new blazortoolkitwasm -o MyApp
cd MyApp
dotnet watch runCreate a standalone WebAssembly PWA:
dotnet new blazortoolkitwasm -o MyApp --pwaCreate an empty starter (omit sample pages and demo styling):
dotnet new blazortoolkitweb -o MyApp -e
dotnet new blazortoolkitwasm -o MyApp -eCreate an app without HTTPS (for local development only):
dotnet new blazortoolkitweb -o MyApp --no-https
dotnet new blazortoolkitwasm -o MyApp --no-httpsThe --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| 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 --helpThe 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.
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/--emptyto skip)
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