HelpBot Assistant

How can I help you?

Install Syncfusion® Blazor NuGet packages

26 Feb 20266 minutes to read

Overview

NuGet is a Package management system for Visual Studio. It makes it easy to add, update and remove external libraries in our application. Syncfusion® publishing all Blazor NuGet packages in nuget.org. The Syncfusion® Blazor NuGet packages can be used without installing the Syncfusion® installation. You can simply exploit the Syncfusion® Blazor NuGet packages in your Blazor application to develop with the Syncfusion® Blazor components.

NOTE

The Syncfusion® Blazor NuGet package, which contains all Syncfusion® Blazor components in a single package, is available beginning with v17.4.0.39 (Essential Studio® 2019 Volume 4).

The Syncfusion® Blazor UI components are available separately as Individual NuGet packages beginning with v18.4.0.30 (Essential Studio® 2020 Volume 4). The NuGet packages are segregated based on the component usage and its namespace.

Installation using Package Manager UI

The NuGet Package Manager UI allows you to search, install, uninstall, and update Syncfusion® Blazor NuGet packages in your applications and solutions.

Follow the steps below to locate and install the Syncfusion® Blazor NuGet packages into a Blazor application:

  1. Right-click on the Blazor application or solution in Solution Explorer and select Manage NuGet Packages… from the context menu.

    Open Manage NuGet Packages from Solution Explorer

    Alternatively, open the NuGet package manager in Visual Studio, select Tools → NuGet Package Manager → Manage NuGet Packages for Solution….

  2. In the Manage NuGet Packages window, go to Browse tab and type Syncfusion.Blazor in the search field. This displays all Syncfusion® Blazor NuGet package options. Select the appropriate package based on the component requirements.

    NOTE

    By default, the nuget.org package source is configured in Visual Studio. If nuget.org is not available, refer to the Microsoft documents to configure the nuget.org feed URL.

    Search for Syncfusion Blazor packages in the Browse tab

  3. When a Blazor package is selected, the right side panel displays detailed information about that package.

  4. By default, the latest version is selected. To install a specific release, select the required version from the available options, click Install and accept the license terms. The package will be added to the Blazor application.

    Install a Syncfusion Blazor package from the Package Manager UI

  5. Now, all required Syncfusion® assemblies have been installed. the application is ready to build high-performance, responsive solutions with Syncfusion® Blazor components. See the Blazor documentation for further development assistance.

Installation using Dotnet (.NET) CLI

The .NET CLI provides functionality to add, restore, pack, publish, and manage packages without modifying project files. Use dotnet add package to add a package reference, and dotnet restore to install it.

Follow the below steps to install Syncfusion® Blazor NuGet packages using the .NET CLI command.

  1. Open a command prompt and navigate the directory to where the Blazor application file is located.
  2. Run the following command to install the NuGet package.

     dotnet add package <PackageName>

    For example:

     dotnet add package Syncfusion.Blazor.Grid

    NOTE

    By default, the command upgrades to the latest version when no version flag is provided. Add the -v parameter to specify a version: dotnet add package Syncfusion.Blazor.Grid -v 32.2.3

  3. After the installation command completes, check the .csproj file to verify that the Syncfusion® Blazor package reference has been added to the Blazor application.

    Blazor Package Entry

  4. Then, run dotnet restore command to restore all required packages to the application file.

  5. Now, all required Syncfusion® assemblies have been installed. the application is ready to build high-performance, responsive solutions with Syncfusion® Blazor components. See the Blazor documentation for further development assistance.

Installation using Package Manager Console

The Package Manager Console saves NuGet package installation time since there is no need to search for the Syncfusion® Blazor NuGet package that needs to be installed. Instead of browsing for the Syncfusion® Blazor NuGet package, developers can simply type an installation command. Follow the instructions below to use the Package Manager Console to install Syncfusion® Blazor components as NuGet packages in Blazor application.

  1. Open the Blazor application in Visual Studio, then go to Tools → NuGet Package Manager → Package Manager Console.

    Package Manager Console in Visual Studio

  2. The Package Manager Console appears at the bottom of Visual Studio. Enter the following NuGet commands to install the Syncfusion® Blazor NuGet packages.

    Install specified Syncfusion® Blazor NuGet package.

    The following command will install the Syncfusion® Blazor NuGet package in the default Blazor application.

     Install-Package <PackageName>

    For example:

     Install-Package Syncfusion.Blazor.Grid

    Note: Browse Syncfusion® Blazor NuGet packages on NuGet.org.

    Install specified Syncfusion® Blazor NuGet package in specified Blazor application

    The following command installs the Syncfusion® Blazor NuGet package into the specified Blazor application.

     Install-Package <PackageName> -ProjectName <ProjectName>

    For example:

     Install-Package Syncfusion.Blazor.Grid -ProjectName SyncfusionBlazorApp
  3. By default, the package will be installed with latest version. To install a specific Syncfusion® Blazor release, specify -Version parameter with the Package Manager Console command.

     Install-Package Syncfusion.Blazor.Grid -Version 32.2.3

    Package Manager Console output showing installed package

  4. The Package Manager Console installs the Syncfusion® Blazor NuGet package and its dependencies. After installation finishes, check the console output for a confirmation message indicating the Syncfusion® Blazor package was added to the application.

  5. Now, all required Syncfusion® assemblies have been installed. the application is ready to build high-performance, responsive solutions with Syncfusion® Blazor components. See the Blazor documentation for further development assistance.