Search results

Getting Started with ASP.NET Core

Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this link to know about registering Syncfusion license key in your ASP.NET Core application to use our components.


To get start with ASP.NET Core application, need to ensure the following software to be installed on the machine.

  • Visual Studio 2017
  • DotNet Core 2.0

Setup ASP.NET Core application with Essential JS 2 for ASP.NET Core

The following steps to create ASP.NET Core Application.

step 1: Add the Syncfusion.EJ2.AspNet.Core NuGet package to the new application by using the Nuget Package Manager. Right-click the project and select Manage NuGet Packages….

> Refer to [this article](../nuget-packages) to learn more details about installing Essential JS 2 NuGet packages in various OS environment.

![aspnetcore2.x manage nuget packages](images/aspnetcore2x-manage-nuget.png)

step 2: Search the Syncfusion.EJ2.AspNet keyword in the Browse tab and install Syncfusion.EJ2.AspNet.Core NuGet package in the application.

![aspnetcore2.x install nuget packages](images/aspnetcore-nuget-package.png)

The Essential JS 2 package will be included in the project, after the installation process is completed.

> **Note:** The Syncfusion.EJ2.AspNet.Core NuGet package has dependencies, [`Newtonsoft.Json`]( for JSON serialization and [`Syncfusion.Licensing`]( for validating Syncfusion license key.

step 3: Open ~/Views/_ViewImports.cshtml file and import the Syncfusion.EJ2 package.

@addTagHelper *, Syncfusion.EJ2

step 4: Add the client-side resources through CDN or local npm package in the <head> element of the ~/Views/Shared/_Layout.cshtml layout page.


    <!-- Syncfusion Essential JS 2 Styles -->
    <link rel="stylesheet" href="" />

    <!-- Syncfusion Essential JS 2 Scripts -->
    <script src=""></script>

step 5: Add the Essential JS 2 Script Manager at the end of <body> element in the ~/Views/Shared/_Layout.cshtml layout page.

    <!-- Syncfusion Essential JS 2 ScriptManager -->

Adding component to the Application

  • Now open your view page to render our Syncfusion components.
<ejs-chart id="container"></ejs-chart>

Alt text