NuGet can be used to automatically add files and references to your Visual Studio projects. You can use the Syncfusion ASP.NET Core NuGet packages without installing the Essential Studio or ASP.NET Core platform installation to implement the Syncfusion ASP.NET Core controls.
From v16.2.0.46 (2018 Volume 2 Service Pack 1) onwards, all the Syncfusion components are available as NuGet packages at nuget.org.
Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet package, you must include a license key in your projects. Refer to this link to learn about registering Syncfusion license key in your ASP.NET Core application to use Syncfusion controls.
Starting from v17.1.0.32 (2018 Volume 1), Syncfusion will no longer publish NuGet packages at nuget.syncfusion.com.
The NuGet Package Manager can be used to search and install NuGet packages in the Visual Studio solution or project.
Right-click the project/solution in the Solution Explorer tab, and choose Manage NuGet Packages…
Alternatively, click Tools, menu, NuGet Package Manager | Manage NuGet Packages for Solution…
Select the NuGet.org from the Package source drop-down.
The Syncfusion NuGet packages are published in public NuGet.org from v16.2.0.46 . To install earlier version of 16.2.0.46 Syncfusion NuGet packages, configure Syncfusion private feed URL.
To reference the Syncfusion ASP.NET Core UI Control using the Package Manager Console as NuGet packages, follow the below steps:
Run the following NuGet installation commands.
#install specified package in default project
Install-Package <Package Name>
#install specified package in specified project
Install-Package <Package Name> - ProjectName <Project Name>
For Example
# install specified package in default project
Install-Package Syncfusion.EJ2.AspNet.Core
#install specified package in specified project
Install-Package Syncfusion.EJ2.AspNet.Core -ProjectName SyncfusionDemoApplication
Right-click the folder in the project, and then select Add Packages…
The NuGet Command Line Interface (CLI), nuget.exe
, provides the full extent of NuGet functionality to install, create, publish, and manage packages without making any change to the project files.
Download the latest NuGet CLI here.
To update the existing nuget.exe to latest version, use the following command.
nuget update -self
Open the downloaded executable location in the command window and run the following commands to download and install the required NuGet packages to a project specified in the package.config.
#install specified package in default project from specified package source for Windows Platform
nuget.exe install <Package name | ConfigFilePath > <Options>
#install specified package in default project from specified package source for MAC/Linux Platform
mono nuget.exe install <Package name | ConfigFilePath > <Options>
configPath is optional. This identifies the package.config or solutions file that lists the packages utilized in the project.
For Example
#install specific package for Windows
nuget.exe install “Syncfusion.EJ2.AspNet.Core”
#install all package which mention in package.config path for Windows
nuget.exe install “C:\Users\SyncfusionApplication\package.config”
#install specific Syncfusion NuGet package for Windows
nuget.exe install “Syncfusion.EJ2.AspNet.Core”
#install all package which mention in package.config path for Mac and Linux
mono nuget.exe install “C:\Users\SyncfusionApplication\package.config”
To update all the projects from solution, use an update option in the solution level.
To update the installed Syncfusion ASP.NET Core NuGet packages using the Package Manager Console, follow the below steps:
Run the following NuGet installation commands.
#Update specific NuGet package in default project
Update-Package <Package Name>
#Update all the packages in default project
Update-Package
#Update specified package in specified project
Update-Package <Package Name> - ProjectName <Project Name>
For Example
#Update specified Syncfusion ASP.NET Core NuGet package
Update-Package Syncfusion.EJ2.AspNet.Core
#Update specified package in specified project
Update-Package Syncfusion.EJ2.AspNet.Core -ProjectName SyncfusionDemoApplication
Using the NuGet CLI, all the NuGet packages in the project can be updated to the available latest version.
Download the latest NuGet CLI from here.
To update the existing nuget.exe to latest version, use the following command.
nuget update -self
Open the downloaded executable location in the command window. Run the following update commands
to update the Syncfusion ASP.NET Core NuGet packages.
#update all NuGet packages from config file
nuget update <configPath> [options]
#update all NuGet packages
nuget update
configPath is optional. This identifies the package.config or solutions file lists the packages utilized in the project.
For Example:
#Update all NuGet packages from config file
nuget update “C:\Users\SyncfusionApplication\package.config”
Update command is not working as expected in Mono (Mac and Linux) and projects using PackageReference format.
To get the URL from Syncfusion website, use the following steps:
Navigate to WEB(Essential JS 2), click the Copy URL label under ASP.NET Core platform to copy the Syncfusion ASP.NET Core platform NuGet feed to clipboard or directly use the following URL: http://nuget.syncfusion.com/nuget_aspnetcore-js2/nuget/getsyncfusionpackages/aspnetcore-js2
Click the Add button (green plus) and enter the ‘Package Name’ and ‘Package Source URL’ of the Syncfusion ASP.NET Core NuGet packages.
Name: Name of the package listed in the available package sources.
Source: Syncfusion ASP.NET Core NuGet Feed URL http://nuget.syncfusion.com/nuget_aspnetcore-js2/nuget/getsyncfusionpackages/aspnetcore-js2
Right-click the Packages folder in the project, and then select Add Packages…
Choose the Configure Sources… from the dropdown that appears in the left corner of the Add Packages dialog.
At the bottom right corner of the dialog, click the Add button to enter the feed name and the URL.
Name: Enter the name (For e.g., Syncfusion ASP.NET Core Packages).
Location: Enter the following URL – http://nuget.syncfusion.com/nuget_aspnetcore-js2/nuget/getsyncfusionpackages/aspnetcore-js2.
Download the latest Nuget CLI here.
To update the existing nuget.exe to latest version use the following command:
nuget update -self
Open the downloaded executable location in the command window, and run the following commands to configure the Syncfusion NuGet packages:
#Add specified package source in NuGet.config file for Windows platform
nuget.exe Sources Add –Name <Source name> –Source <Source location>
#Add specified Package Source in Nuget.config file for MAC/Linux platform
mono nuget.exe Sources Add –Name <Source name> –Source <Source location>
For Example
#For Windows platform
nuget.exe Sources Add –Name “Syncfusion Source” –Source “http://nuget.syncfusion.com/nuget_aspnetcore-js2/nuget/getsyncfusionpackages/aspnetcore-js2”
#For MAC/Linux platform mono
nuget.exe Sources Add –Name “Syncfusion Source” –Source “http://nuget.syncfusion.com/nuget_aspnetcore-js2/nuget/getsyncfusionpackages/aspnetcore-js2”