Upgrade application To latest version in Blazor DataGrid
3 Dec 20251 minute to read
Step 1: Update to the latest Syncfusion® Blazor NuGet package using the NuGet Package Manager in the application.
Compatible .NET version
The latest Syncfusion® Blazor components are compatible with the latest .NET (for example, .NET 9). It is recommended to upgrade the .NET SDK on the machine before updating to the latest Syncfusion version.
Client resource file references
Ensure Syncfusion CSS resources are properly referenced in the application.
-
For a Blazor Server app, add the following style file reference in ~/Pages/_Host.cshtml.
-
For a Blazor WebAssembly app, add the following style file reference in ~/wwwroot/index.html.
<head>
....
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />
</head>NOTE
For production scenarios and minimal footprint, Syncfusion® provides the Custom Resource Generator (CRG) web tool to generate scripts and styles for selected controls. Refer to this link for more details on CRG.
Breaking changes
Some changes may occur across releases that affect existing applications. Review the breaking changes and notes for the target version before upgrading. Refer to the Blazor components release notes for details.
Cache problem
Before restoring NuGet packages, clear any cached versions of the Syncfusion.Blazor package to avoid conflicts.
The following steps explain how to clean the cache:
-
Delete/clear the
Syncfusion.Blazorpackage from the installed location{System drive}/Users/{user-name}/.nuget/packages/syncfusion.blazor. On Windows, the installed location can also be accessed using%userprofile%/.nuget/packages/syncfusion.blazor. -
Update to the latest version of the
Syncfusion.BlazorNuGet package.