Syncfusion® Document SDK Template Studio
18 Nov 201815 minutes to read
Syncfusion® provides the Document SDK Template Studio, which allows you to create a Syncfusion® Blazor application using Syncfusion® Document SDK components. The Syncfusion® Document SDK Blazor app is created with the required Syncfusion® NuGet references, namespaces, styles, and component render code. The Template Studio includes an easy-to-use project wizard that guides you through the process of creating an application with Syncfusion® Document SDK components.
The steps below will assist you to create your Syncfusion® Document SDK Blazor Application through Visual Studio:
Before using the Syncfusion® Project Template, check whether the Syncfusion® Document SDK Extension is installed in the Visual Studio Extension Manager by clicking Extensions > Manage Extensions > Installed. If this extension is not installed, install it by following the steps in the download and installation help topic.
-
Open Visual Studio 2022 or later.
-
To create a Syncfusion® Document SDK Blazor application, use one of the following options:
Option 1
Choose Extension -> Syncfusion -> Essential Studio® for Document SDK -> Create New Syncfusion Project… from the Visual Studio menu.

Option 2
Choose File -> New -> Project from the menu. This launches a new dialogue for creating a new application. Syncfusion® templates can be found by filtering the application type for Syncfusion or by entering Syncfusion as a keyword in the search option.

-
Select the Syncfusion® Document SDK Template Studio and click Next.

-
The Syncfusion® Document SDK Template Studio wizard will be launched to configure the Syncfusion Blazor app.
Note: Refer to the .NET SDK support for Syncfusion Blazor Components here.
Project type section
Choose one of the Syncfusion® Document SDK Blazor application types based on the version of the .NET SDK you are using.
.NET SDK version Supported Syncfusion Blazor Application Type .NET 11.0, .NET 10.0, .NET 9.0, .NET 8.0 Syncfusion Blazor Web App .NET 11.0, .NET 10.0, .NET 9.0, .NET 8.0 Syncfusion Blazor WebAssembly App In the Syncfusion Blazor Web App application type, you can configure the following options:
Interactivity type Server, WebAssembly, Auto (Server and WebAssembly) Interactivity location Global, Per page/component 
In the Syncfusion Blazor WebAssembly App application type, you can choose Progressive Web Application.

Note: The Progressive Web Application will be enabled if .NET 8.0 version or higher is installed.
-
Click either Next or the Controls tab. The Syncfusion® Document SDK components you can add to the application are listed.

Choose the required control(s) by clicking the corresponding control box.
To unselect the added control(s), use one of the following options:
Option 1: Click the corresponding selected control box.
Option 2: Click ‘x’ button for corresponding control in the control list from Project Details.
Note: Choose at least one control to enable the Features and Configuration tab.
-
Click either Next or the Features tab, and you will see the features listed for the selected controls. You can choose the required features.
-
Click Next or the Configuration tab to load the Configuration section. You can choose the required .NET version (.NET 11.0, .NET 10.0, .NET 9.0, or .NET 8.0), themes, HTTPS configuration, authentication type, and Blazor Web App or Blazor WebAssembly App application types.
Depending on your Syncfusion Blazor Application Type, refer to the table below for supported authentication types.
Syncfusion Blazor Application Type Supported Authentication Types Syncfusion Blazor Web App None and Individual Accounts Syncfusion Blazor WebAssembly App None, Individual Accounts and Microsoft Identity Platform If you choose the Blazor Web App application type, you can customize the Interactivity type and Interactivity location options.

If you choose the Blazor WebAssembly App application type, you can customize the Progressive Web Application option.

Project details section
You can change the configuration details below in the Project Details section to change the application type, remove control(s) from the selected controls, or change the configurations.

-
Click the Create button. The Syncfusion® Document SDK Blazor application has been created. The created Syncfusion® Document SDK Blazor app has the Syncfusion NuGet packages, styles, and the render code for the selected Syncfusion® Document SDK component.

-
The Syncfusion® Document SDK Blazor application is configured with the most recent Syncfusion® NuGet packages version, selected style, namespaces, selected authentication, and component render code for Syncfusion® Document SDK components.
-
If you installed the trial setup or NuGet packages from nuget.org you must register the Syncfusion® license key to your application since Syncfusion® introduced the licensing system from 2018 Volume 2 (v16.2.0.41) Essential Studio® release. Navigate to the help topic to generate and register the Syncfusion® license key to your application. Refer to this blog post for understanding the licensing changes introduced in Essential Studio®.
Authentication Configuration
You need to register the created application in the Google API Console for Individual Accounts and in Azure Active Directory for the Microsoft Identity Platform. From the Google API Console registration, you can obtain the client ID for Individual Accounts. From the Azure Active Directory registration, you can obtain the tenant ID and application client ID for the Microsoft Identity Platform. You need to configure these ID values in the created applications; only then will the application run correctly with authentication support.
Individual Accounts Authentication
Web Application and Progressive Web Application
-
Go to the credentials page below for the Google Cloud Platform API console.
https://console.cloud.google.com/apis/credentials?project=aerobic-furnace-244104&pli=1
-
Click Create Credentials and select OAuth Client ID.


-
Select the Application type as Web Application in the client ID creation.

-
Add your publish URL link as an Authorized URI and the login URL as a Redirect URI.

-
Click Create. The OAuth client ID will be created; copy that credential.

-
Add the Client ID and RedirectUri in the appsettings.json file of your application.

-
Change the build configuration bind to google from Local in the Program.cs file.

Microsoft Identity Platform Authentication
Server Application
-
Go to the Azure Active Directory App Registration page below.
https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps
-
Click New Registration in the App Registration page.

-
Give a name for the application and select the supported account type as single tenant.

-
Scroll down the page, select the platform as Web, enter your application Redirect URI like
{Redirect URI}/signin-oidc, and click Register.
-
After the app is registered, go to the Authentication page and tick the ID token checkbox.

-
Get the client tenant ID and application ID from the overview page.

-
Configure the client tenant ID, application ID, and domain in your application’s appsettings.json file.

Web Application and Progressive Web Application
-
Go to the Azure Active Directory App Registration page below.
https://portal.azure.com/#view/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/~/RegisteredApps
-
Click New Registration in the App Registration page.

-
Give a name for the application and select the supported account type as single tenant.

-
Scroll down the page, select the platform as Web, enter your application Redirect URI, and click Register.

-
After the app is registered, go to the Authentication page and tick the Access token and ID token checkboxes.

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


-
Get the client tenant ID and application ID from the overview page.

-
Configure the client tenant ID and application ID in your application’s appsettings.json file.

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

-
Give a name for the application and select the supported account type as single tenant.

-
Scroll down the page, select the platform as Web, enter your application Redirect URI, and click Register.

-
After the app is registered, go to the Authentication page and tick the Access token and ID token checkboxes.

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


-
Get the client tenant ID and application ID from the overview page.

-
Configure the client tenant ID and application ID in your application’s appsettings.json file.

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

-
Give a name for the application and select the supported account type as single tenant.

-
Scroll down the page, select the platform as Web, enter your application Redirect URI, and click Register.

-
After the app is registered, go to the Authentication page and tick the Access token and ID token checkboxes.

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


-
Add a scope API in the Expose an API page.

-
Enter the scope name, admin consent display name, and admin consent description and click Add scope. The scope API will be created; copy the scope API value.

-
Get the client tenant ID and application ID from the overview page.

-
Configure the client tenant ID, application ID, added scope API ID, and domain in your application’s appsettings.json file.

-
Configure the scope API in the client application’s Program.cs file at the highlighted place below.
Run application
You can run the application and see the Syncfusion® Document SDK component you selected.

Register and Login Application
Individual Authentication
Blazor Web App
Applying Database Migrations and User Registration in the .NET 8.0, .NET 9.0,.NET 10.0 and .NET 11.0 Blazor Web App
Applying 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.

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

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

Web Application and Progressive Web Application
-
Log in 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 a Microsoft account.
-
Accept the permission request of your application.
