Dimodi.Telerik.Blazor.Templates
5.3.1
See the version list below for details.
dotnet new install Dimodi.Telerik.Blazor.Templates::5.3.1
Telerik UI for Blazor Project and Item Templates
This NuGet package provides ASP.NET Core Blazor project and item templates that include the Telerik UI for Blazor component library. The project templates provide multiple settings to configure the Telerik Blazor components during app creation. The item templates expose settings to enable various Telerik component features.
Table of Contents
- Templates
- Install
- Use with Visual Studio
- Use with VS Code
- Use with the .NET CLI
- Project template features
- Update
- Uninstall
- Create your own templates
- License
Templates
The package includes the following project and item templates.
Project Templates
Template Name | .CLI Short Name |
---|---|
Telerik Blazor Web App | dimodi-blazor |
Telerik Blazor WebAssembly Standalone App | dimodi-blazorwasm |
Deprecated Project Templates
The following project templates are deprecated and do not include the latest template features:
Template Name | .CLI Short Name |
---|---|
Telerik Blazor Web App (Server render mode) | dimodi-blazor-server |
Telerik Blazor Web App (WebAssembly or Auto render mode) | dimodi-blazor-wasmauto |
Telerik Blazor Server App (.NET 6-7) | dimodi-blazorserver |
Telerik Blazor WebAssembly App, ASP.NET Core hosted (.NET 6-7) | dimodi-blazorwasm-hosted |
- The two Web App project templates (Server and WebAssembly/Auto) have a new single alternative: Telerik Blazor Web App.
- The two .NET 6-7 project templates are compatible with Telerik UI for Blazor version 8.x, but are not compatible with version 9.x.
Item Templates
The item templates produce a runnable .razor
file that includes a Telerik Blazor component, dummy data, and applicable event handlers.
Template Name | .CLI Short Name | Component Features |
---|---|---|
Telerik Blazor Grid | dimodi-grid |
CRUD operations, row selection, grouping, Data or OnRead data binding |
Telerik Blazor TreeView | dimodi-treeview |
Selection, checkboxes, flat or hierarchical data structure |
Install
- Close Visual Studio.
- Open your Terminal or Shell app.
- Execute the
dotnet new install
command:dotnet new install Dimodi.Telerik.Blazor.Templates
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, edit and run the app through VS Code or another compatible IDE.
When creating a WebAssembly app, make sure to select the server project as a startup project before running.
To create a new .razor
file from an item template, use the .NET CLI.
Use with VS Code
Install the C# Dev Kit extension.
To create a new app:
- Go to the Command Palette at the top (
Ctrl
+Shift
+P
). - Select Show and Run Commands.
- Select .NET: New Project...
- Type a project name and configure the project template options.
To create a new .razor
file from an item template, use the .NET CLI.
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"
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 -o MyNewAppName
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.
Project Template Features
The project templates are similar to the default .NET SDK Blazor project templates in terms of structure and configuration. The differences are:
- The Blazor Web Apps use a Global interactivity location, i.e. interactive render mode for the entire app. This is the easier and recommended way to integrate Telerik UI for Blazor.
- The WebAssembly apps reference the latest minor version of the selected .NET version through a wildcard.
- The apps use the
https
launch profile by default. - Visual Studio opens
Home.razor
automatically after the app is created. - The top bar uses background and border colors from the Telerik theme. This makes the styling consistent in dark mode.
- The
<button>
and<table>
HTML elements in the default sample pages are replaced with Telerik Button and Grid. - The
SurveyPrompt
Razor component is removed.
Telerik UI for Blazor Configuration
- The Telerik UI for Blazor NuGet package, namespaces, service, and static assets are added, according to best practices. The query string cache buster for the Telerik CSS and JavaScript files is missing from the WebAssembly Standalone App template due to dynamic content restrictions in
index.html
. - The Web App templates set
PrivateAssets="none"
to the Telerik UI for Blazor NuGet package reference when using WebAssembly or Auto render mode. This avoids license warnings on app startup.
The project templates provide options to configure the app and the Telerik UI for Blazor components during app creation:
Template Option | Default Value | Description |
---|---|---|
Components version | latest | The project templates provide a selection of recent Telerik UI for Blazor versions. The default value is the latest semantic version, but the templates also allow you to set the latest version as a wildcard * . |
Theme | Default | The Telerik UI for Blazor NuGet package includes a few CSS files that define different styling of the Telerik Blazor components. |
Dark mode | disabled | Dark mode requires CDN to be enabled, because the dark theme variations (known as swatches) are not included as static assets in the Telerik UI for Blazor NuGet package. |
CDN support | disabled | Load the Telerik theme and JavaScript file from CDN instead of the NuGet package assets. 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 * . |
Icon type | SVG | Telerik Blazor components can render SVG icons or font icons. |
Localization | disabled | Adds both .NET and Telerik localization. Available only in the .NET 8-9 project templates. |
RTL support | disabled | |
File upload controller | disabled | When added, the maximum file upload size increases to 256 MB in Programs.cs . Available only in the .NET 8-9 project templates. |
Maximum SignalR message size | 32 KB | This option works in Visual Studio on Windows and through the .NET CLI. The setting doesn't appear in VS Code and in Visual Studio for Mac. In these cases, edit Program.cs after creating the app. |
Docker Support
The project templates provide an optional Docker setup, including Dockerfile
, .dockerignore
, and a Docker launch profile. The Dockerfile
sets up the Telerik NuGet package source in the container.
The Dockerfile
contains additional documentation and tips.
Update
Execute the dotnet new update
command:
dotnet new update Dimodi.Telerik.Blazor.Templates
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 achieving your goals by 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 support for Telerik UI for Blazor 9.1.0.
NOTE
The following project templates are deprecated and may not include the latest or all available features:
* Web App (Server) and Web App (WebAssembly and Auto). These templates will be removed in the next version. Use the unified Web App template instead.
* The .NET 6 and .NET 7 project templates. These templates are compatible with Telerik UI for Blazor version 8.x, but are not compatible with version 9.x.