Dimodi.Telerik.Blazor.Templates
5.0.0
See the version list below for details.
dotnet new install Dimodi.Telerik.Blazor.Templates::5.0.0
Telerik Blazor Project and Item Templates
This NuGet package provides Visual Studio project and item templates for Telerik Blazor apps and component scaffolders with some convenient extras.
Table of Contents
- Templates
- Install
- Use with Visual Studio
- Use with the .NET CLI
- Extras
- Update
- Uninstall
- Create your own templates
- License
Templates
- .NET 8-9 Blazor Web App with global interactive Server render mode
- .NET 8-9 Blazor Web App with global interactive WebAssembly or Auto render mode
- .NET 8-9 Blazor WebAssembly Standalone App
- .NET 6-7 Blazor Server App
- .NET 6-7 Blazor WebAssembly App (ASP.NET Core hosted)
- Grid with optional CRUD operations, row selection, grouping, and two data binding mechanisms
- TreeView with optional selection, checkboxes, and flat or hierarchical data structure
Install
Install From nuget.org
- Close Visual Studio.
- Open your Terminal or Shell app.
- Execute the
dotnet new install
command:dotnet new install Dimodi.Telerik.Blazor.Templates
Install From GitHub
- Close Visual Studio.
- Download the NuGet package from the latest release to some folder.
- Open your Terminal or Shell app and go to the folder from the previous step.
- Execute the
dotnet new install
command:dotnet new install Dimodi.Telerik.Blazor.Templates.*.nupkg
Use with Visual Studio
On Windows, the new project templates will appear in the C#
, Web
and Blazor
categories in the Create New Project wizard. Make sure to select "All platforms" in the respective dropdown.
On Mac, the new project templates will appear in the Other
> Custom
category. Visual Studio for Mac is unable to run .NET 8 Blazor Web Apps with WebAssembly or Auto render mode if .NET 9 is installed. In this case, you can edit the app code in Visual Studio, but run the app through the .NET CLI. Or, edit and run the app through VS Code.
When creating a WebAssembly app, make sure to select the server project as a startup project before running.
Use with the .NET CLI
To see all available project and item templates, execute the dotnet new list
command with the --author
option:
dotnet new list --author="Dimo Dimov"
The project templates use similar short names to the respective Microsoft counterparts, but with a dimodi
prefix and sometimes a suffix, for example:
Template Descrption | Microsoft Template Short Name | Dimodi Template Short Name |
---|---|---|
.NET 8-9 Blazor Web App with Server render mode | blazor |
dimodi-blazor-server |
.NET 8-9 Blazor Web App with WebAssembly or Auto render mode | blazor |
dimodi-blazor-wasmauto |
.NET 8-9 Blazor WebAssembly Standalone App | blazorwasm |
dimodi-blazorwasm |
.NET 6-7 Blazor Server App | blazorserver |
dimodi-blazorserver |
.NET 6-7 Blazor WebAssembly App (ASP.NET Core hosted) | blazorwasm |
dimodi-blazorwasm-hosted |
For help on a specific project or item template, execute the dotnet new
command with the --help
option, for example:
dotnet new dimodi-grid --help
Create Projects
- Open Terminal and go to the desired parent folder of your future app.
- Execute the
dotnet new
command with the short name of the template and the app name, for example:dotnet new dimodi-blazor-server -o MyNewAppName
When creating a WebAssembly app, make sure to select the server project as a startup project before running.
Interactive Render Mode
The Blazor Web App (Server) template (dimodi-blazor-server
) sets global Server
interactivity location.
The Blazor Web App (WebAssembly / Auto) template (dimodi-blazor-wasmauto
) sets global WebAssembly
or Auto
interactivity. To create a project with Auto
interactivity, set rendermode
to Auto
in the dotnet new
command:
dotnet new dimodi-blazor-wasmauto -o MyNewAppName --rendermode Auto
Create Items
- Open Terminal and go to a folder inside your existing app, for example
Pages
orComponents
. - Execute the
dotnet new
command with the short name of the template and the file name, for example:dotnet new dimodi-grid -n MyNewGridPаge
- The above command will produce a
MyNewGridPаge.razor
file inside the current folder.
Extras
The item templates provide declarations of Telerik Blazor components together with dummy data, which includes different data types.
The project templates are similar to the default .NET SDK Blazor project templates. The differences are:
- The apps reference one of the latest Telerik UI for Blazor versions or the latest version as a wildcard
*
. - The WebAssembly apps reference the latest minor .NET version.
- The Telerik UI for Blazor NuGet package, namespaces, service, and static assets are added, according to best practices.
- You can configure some settings related to the app and the Telerik UI for Blazor components during app creation (see the default values in the brackets):
- Theme (
Default
) - Dark theme swatch (disabled). Requires CDN.
- Icon type (SVG icons or Font icons) (SVG)
- CDN support (disabled). WebAssembly Standalone Apps support CDN only with a fixed Telerik UI for Blazor version number. Blazor Web Apps support CDN with both fixed and wildcard (
*
) version. - Localization in .NET 8 and .NET 9 apps (disabled)
- RTL support (disabled)
- Maximum file upload size (128 MB in FormOptions and 28 MB in Kestrel) *
- Maximum SignalR message size (32 KB) *
- Theme (
- The Telerik CSS and JS files are loaded with a query string cache buster to prevent browser caching across version upgrades. This feature is missing from the WebAssembly Standalone App template due to dynamic content usage restrictions in
index.html
. - .NET 8 and .NET 9 apps use the
https
launch profile by default. - The top bar uses background and border colors from the Telerik theme. This makes the styling consistent in dark mode.
- The
SurveyPrompt
Razor component is removed. - The
<button>
and<table>
HTML elements in the default sample pages are replaced with Telerik Button and Grid.
* The options to change the max file upload size and the max SignalR message size work in Visual Studio on Windows and through the .NET CLI. They don't appear in VS Code and in Visual Studio for Mac. In these cases, edit Program.cs
after creating the app.
Update
Update From nuget.org
Execute the dotnet new update
command:
dotnet new update Dimodi.Telerik.Blazor.Templates
Update from GitHub
- Uninstall the package.
- Repeat the GitHub installation steps.
Uninstall
To remove the currently installed package, execute the dotnet new uninstall
command:
dotnet new uninstall Dimodi.Telerik.Blazor.Templates
Create Your Own Templates
If you wish to experiment with your own project or item templates, then start from here:
- https://learn.microsoft.com/en-us/dotnet/core/tools/custom-templates
- https://github.com/dotnet/templating/
- https://github.com/dotnet/aspnetcore/tree/main/src/ProjectTemplates
- https://github.com/sayedihashimi/template-sample
Prepare for reading incomplete and unofficial documentation, and a lot of trial and error.
License
Telerik UI for Blazor is a commercial component library with its own license agreement.
The project and item templates are subject to MIT License.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
6.3.0 | 248 | 9/17/2025 |
6.2.1 | 202 | 8/29/2025 |
6.2.0 | 216 | 8/26/2025 |
6.1.0 | 175 | 8/13/2025 |
6.0.0 | 148 | 7/28/2025 |
5.4.0 | 251 | 7/1/2025 |
5.3.1 | 156 | 6/27/2025 |
5.3.0 | 129 | 6/6/2025 |
5.2.1 | 188 | 5/21/2025 |
5.1.0 | 187 | 4/30/2025 |
5.0.0 | 228 | 3/19/2025 |
4.5.0 | 227 | 3/11/2025 |
4.4.1 | 199 | 2/12/2025 |
4.4.0 | 234 | 12/18/2024 |
4.3.0 | 171 | 12/14/2024 |
4.2.0 | 221 | 12/6/2024 |
4.1.0 | 184 | 11/16/2024 |
4.0.0 | 156 | 11/15/2024 |
3.1.0 | 155 | 11/13/2024 |
3.0.1 | 170 | 10/26/2024 |
NEW
* Added a default app name for the New Project wizard in VS Code C# Dev Kit.
* Added Telerik UI for Blazor version selector, dark mode, and random ports to the .NET 6-7 project templates.
* Removed the .sln solution file from the single-project templates, similar to how the standard Microsoft project templates work. Visual Studio and VS Code C# Dev Kit create a solution file automatically.
FIXED
* Prevented duplicate solution file generation when creating an app with VS Code C# Dev Kit.
BREAKING CHANGE
* Renamed the framework version short alias from -F to -f when using the .NET CLI.