What is the best way to include the Syncfusion MVC NuGet package, along with licensing details to avoid license banner issues?
To include the Syncfusion.EJ2.MVC5 NuGet package, you can follow one of the two ways mentioned below.
- Install through NuGet Packages.
- Install through Syncfusion ASP.NET MVC EJ2 web installer.
Install through NuGet Packages:
The Syncfusion ASP.NET MVC JS2 NuGet packages can be used without installing the Syncfusion setup via the Syncfusion web Installer. Please find more details regarding this in the following
User Guide:
https://ej2.syncfusion.com/aspnetmvc/documentation/installation/install-through-nuget-packages
https://ej2.syncfusion.com/aspnetmvc/documentation/spreadsheet/getting-started-mvc
To avoid the license banner, you must generate and register the license in the ‘Global.asax.cs’ file. Please find more details about this in the following User Guide. If you want to install the Syncfusion ASP.NET MVC JS2 NuGet package of specific version, you need to generate a license for that specific version by selecting the ASP.NET MVC platform since the Syncfusion license is version and platform-specific.
https://ej2.syncfusion.com/aspnetmvc/documentation/licensing/how-to-generate
https://ej2.syncfusion.com/aspnetmvc/documentation/licensing/how-to-register-in-an-application
However, there is an exception if you are using Syncfusion JavaScript controls in an ASP.NET MVC app with Syncfusion MVC controls. In this case, you need to register the license in both Global.asax.cs and _Layout.cshtml.
Install through Syncfusion ASP.NET MVC EJ2 web installer:
You can install the Syncfusion ASP.NET MVC product through the web installer by following the User Guides below:
https://ej2.syncfusion.com/aspnetmvc/documentation/installation/web-installer/how-to-download
https://ej2.syncfusion.com/aspnetmvc/documentation/installation/web-installer/how-to-install
Once the product is installed using your licensed Syncfusion email address and password, you can find the licensed Syncfusion.EJ2.MVC5 NuGet package in the following directory: D:\ASP.NET MVC - EJ2\23.1.36\NuGetPackages\Syncfusion.EJ2.MVC5.23.1.36.nupkg
.
Afterward, you can add this NuGet Package locally and run the application without registering the license key, and the license banner will not appear.
It is important to note that we only maintain the Main release and Service Pack release packages in the web installer. If you need to install a weekly release package in your app, you must install it only by installing NuGet Packages.