Syncfusion® Blazor Template Studio
16 Jul 202613 minutes to read
The Syncfusion® Blazor Template Studio creates a new Syncfusion® Blazor project preconfigured with required NuGet packages, theme styles, namespaces, and initial render code for the components you select. The Template Studio uses a step-by-step wizard so you can quickly scaffold an application with your choices for runtime, theme, authentication, and sample data.
NOTE
The Syncfusion® Blazor extensions for Visual Studio require Essential Studio® versions 31.2.10 or later.
Quick start
-
Open Visual Studio 2022 or 2026.
-
Create a new Syncfusion Blazor project using one of these options:
-
Extension: Extension → Syncfusion® → Essential Studio® for Blazor → Create New Syncfusion Project…

-
File: File → New → Project. In the New Project dialog, filter by Syncfusion or search for “Syncfusion” to find the Blazor templates.

-
-
Select Syncfusion® Blazor Template Studio, configure the project name and location, and click Next.

-
The Template Studio wizard opens. It guides you through the Project Type, Controls, Features, and Configuration tabs.
Note: Refer to the .NET SDK support for Blazor Components here.
Project type - choose a template that matches your installed .NET SDK.
.NET SDK version Application type .NET 10.0, .NET 9.0, .NET 8.0 Blazor Web App .NET 10.0, .NET 9.0, .NET 8.0 Blazor WebAssembly App For the Blazor Web App type you can set Interactivity type (Server, WebAssembly, Auto) and Interactivity location (Global or per page/component).

For Blazor WebAssembly projects you can enable Progressive Web Application (PWA) where supported.

-
Click Next or open the Controls tab to pick the Syncfusion Blazor components to include in the project. Use the search box to filter the component list.

Select at least one control to enable Features and Configuration options.
-
Use the Features tab to choose component features. Use the Configuration tab to set the target .NET version, theme, HTTPS, PWA (for WebAssembly), localization, and authentication options.
Supported authentication types depend on the application type:
Application type Supported authentication types Blazor Web App None, Individual Accounts Blazor WebAssembly App None, Individual Accounts, Microsoft Identity Platform 

-
Review the Project details panel to modify selected controls or change configuration values.

-
Click Create. Template Studio generates the project with the required Syncfusion NuGet packages, styles, namespaces, and initial component render code.

-
The created project includes the chosen theme, Syncfusion NuGet package versions, authentication settings, and sample render code for the selected components.
-
If you installed the trial setup or NuGet packages from nuget.org, register the Syncfusion® license key in your application. Syncfusion® introduced the licensing system in the 2018 Volume 2 (v16.2.0.41) Essential Studio® release. Navigate to the help topic to generate and register the Syncfusion® license key. Refer to this blog post for background on the licensing changes introduced in Essential Studio®.
Authentication Configuration
Register the created application in the Google API Console for Individual Accounts, or in Azure Active Directory for the Microsoft Identity Platform. The Google API Console registration provides the client ID for Individual Accounts, while the Azure Active Directory registration provides the tenant ID and application client ID for the Microsoft Identity Platform. Configure these ID values in the created application so it runs correctly with authentication support.
Individual Accounts Authentication
Web Application and Progressive Web Application
-
Go to the credentials page in the Google Cloud Platform API Console.
https://console.cloud.google.com/apis/credentials?project=aerobic-furnace-244104&pli=1
-
Click Create Credentials and OAuth Client Id.


-
Select Application type as Web Application in client Id creation.

-
Add your publish URL link as an Authorized URI and login URL as Redirected URI.

-
Click save then OAuth client id will be created and copy that credential.

-
Add the Client Id and RedirectUri in the
appsettings.jsonfile of your application. Example keys:
-
Change the build configuration binding from
Localtogooglein theProgram.csfile.
Microsoft Identity Platform Authentication
Server Application
-
Go to below Azure Active Directory App Registration page.
https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps
-
Click New Registration in App Registration page.

-
Give name of the application and selected supported type as single tenant.

-
Dropdown the page, select platform as web and give your application Redirect URI like {Redirect URI}/signin-oidc and click Register.

-
App will be registered, go to the Authentication page and tick Id token check box.

-
Get client tenant id and application id form overview page.

-
Configure the client tenant id, application id, and domain in your application’s
appsettings.jsonfile. Example keys:
Web Application and Progressive Web Application
-
Go to below Azure Active Directory App Registration page.
https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps
-
Click New Registration in App Registration page.

-
Give name of the application and selected supported type as single tenant.

-
Dropdown the page, select platform as web and give your application Redirect URI and click Register.

-
App will be registered, go to the Authentication page and tick Access token an Id token check box.

-
Migrate the API by clicking the highlighted arrow like in below image.


-
Get client tenant id and application id form overview page.

-
Configure the client tenant id and application id in your application’s
appsettings.jsonfile.
ASP.NET Core Hosted Web Application, and ASP.NET Core Hosted with Progressive Web Application
Client project Registration and Configuration
-
Go to below Azure Active Directory App Registration page.
https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps
-
Click New Registration in App Registration page.

-
Give name of the application and selected supported type as single tenant.

-
Dropdown the page, select platform as web and give your application Redirect URI and click Register.

-
App will be registered, go to the Authentication page and tick Access token an Id token check box.

-
Migrate the API by clicking the highlighted arrow like in below image.


-
Get client tenant id and application id form overview page.

-
Configure those client tenant id and application id in your application appsettings.json file.

Server project Registration and configuration
-
Go to below Azure Active Directory App Registration page.
https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps
-
Click New Registration in App Registration page.

-
Give name of the application and selected supported type as single tenant.

-
Dropdown the page, select platform as web and give your application Redirect URI and click Register.

-
App will be registered, go to the Authentication page and tick Access token an Id token check box.

-
Migrate the API by clicking the highlighted arrow like in below image.


-
Add a scope API in Expose an API page.

-
Give scope name, admin consent display name, and admin consent description and click Add scope. Scope API will be created, copy those scope API Value.

-
Get client tenant id and application id form overview page.

-
Configure the client tenant id, application id, added scope api id, and domain in your application’s
appsettings.jsonfile.
-
Configure the scope API in the client application’s
Program.csfile at the highlighted location.
Run application
Run the application to see the Syncfusion® components you selected. Select a component to view its output.

You can select a culture from the combo box at the top right of the output page to apply the culture in the application.

NOTE
Note: The culture combo box is enabled in the sample output only if the Enable localization option is selected in the Configuration window of the Syncfusion® Blazor Template Studio wizard.
Register and Login Application
Individual Authentication
Blazor Web App
Apply database migrations and user registration in .NET 8.0, .NET 9.0, and .NET 10 Blazor Web App
Apply database migrations
In the Blazor Web App, it’s essential to apply pending migrations to the database before proceeding with user registration. Choose one of the following options:
Option 1: Using Visual Studio Package Manager Console
Navigate to View -> Other Windows -> Package Manager Console in Visual Studio.
Run the following command in the Package Manager Console:
Update-Database
Option 2: Using Command Prompt
Open a command prompt in your project directory and execute the following command:
dotnet ef database update
User registration
-
Launch the application and register by submitting your email address and creating a password.

-
Confirm your registration by clicking Click here to confirm your account.

-
Submit your registered email address and password to log in to the application.

Server Application, ASP.NET Core hosted Web Application, and Progressive Web Application with ASP.NET Core hosted
-
To register the application, submit your email address and create a password.

-
Confirming registration by clicking Click here to confirm your account.

-
Submit your registered email address and password to login the application.

Web Application and Progressive Web Application
-
Login to the application using Gmail accounts.

Microsoft Identity Platform
Server Application, Web Application, Progressive Application, ASP.NET Core Hosted Web Application, and ASP.NET Core Hosted with Progressive Web Application
-
Log in to your application using your Microsoft account.
-
Accept the permission request for your application.
