Skip to content

Commit 46d773f

Browse files
933689: Core Application Getting Started Update
1 parent 8401a01 commit 46d773f

File tree

1 file changed

+49
-3
lines changed

1 file changed

+49
-3
lines changed

ej2-asp-core-mvc/diagram/EJ2_ASP.NETCORE/getting-started.md

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ This section briefly explains about how to include [ASP.NET Core Diagram](https:
1616

1717
[System requirements for ASP.NET Core controls](https://ej2.syncfusion.com/aspnetcore/documentation/system-requirements)
1818

19-
## Create ASP.NET Core web application with Razor pages
19+
## Create an ASP.NET Core web application
20+
21+
### Visual Studio
22+
23+
### Create ASP.NET Core web application with Razor pages
2024

2125
* [Create a Project using Microsoft Templates](https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/razor-pages-start?view=aspnetcore-6.0&tabs=visual-studio#create-a-razor-pages-web-app)
2226

2327
* [Create a Project using Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Extension](https://ej2.syncfusion.com/aspnetcore/documentation/getting-started/project-template)
2428

25-
## Install ASP.NET Core package in the application
29+
### Install ASP.NET Core package in the application
2630

2731
To add `ASP.NET Core` controls in the application, open the NuGet package manager in Visual Studio (Tools → NuGet Package Manager → Manage NuGet Packages for Solution), search for [Syncfusion.EJ2.AspNet.Core](https://www.nuget.org/packages/Syncfusion.EJ2.AspNet.Core/) and then install it. Alternatively, you can utilize the following package manager command to achieve the same.
2832

@@ -36,6 +40,48 @@ Install-Package Syncfusion.EJ2.AspNet.Core -Version {{ site.releaseversion }}
3640

3741
N> Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core controls are available in [nuget.org.](https://www.nuget.org/packages?q=syncfusion.EJ2) Refer to [NuGet packages topic](https://ej2.syncfusion.com/aspnetcore/documentation/nuget-packages) to learn more about installing NuGet packages in various OS environments. The Syncfusion.EJ2.AspNet.Core NuGet package has dependencies, [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) for JSON serialization and [Syncfusion.Licensing](https://www.nuget.org/packages/Syncfusion.Licensing/) for validating Syncfusion<sup style="font-size:70%">&reg;</sup> license key.
3842

43+
### Visual Studio Code
44+
45+
### Create an ASP.NET Core web application
46+
47+
1.Create a new folder and open it in the VS Code by **File > Open Folder...**.
48+
49+
N> Visual Studio Code displays a dialog box that asks `Do you trust the authors of the files in this folder`. Select:
50+
<br/> * The checkbox trust the authors of all files in the parent folder.
51+
<br/> * Yes, I trust the authors.
52+
53+
2.Open the [Integrated Terminal](https://code.visualstudio.com/docs/editor/integrated-terminal) by selecting a menu using **View > Terminal** in VS Code.
54+
3.Run the following command in the terminal to create a new ASP.NET Core web application.
55+
56+
{% tabs %}
57+
{% highlight c# tabtitle=".NET CLI" %}
58+
dotnet new webapp -o AspNetCoreWebApp
59+
{% endhighlight %}
60+
{% endtabs %}
61+
62+
The `dotnet new` command creates new Razor Pages project in the AspNetCoreWebApp folder. Refer to this [topic](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new?tabs=net60) for more information about .NET CLI commands.
63+
64+
4.Run the following command in the terminal to open the project in current instance of the VS Code.
65+
{% tabs %}
66+
{% highlight c# tabtitle=".NET CLI" %}
67+
68+
code -r AspNetCoreWebApp
69+
70+
{% endhighlight %}
71+
{% endtabs %}
72+
73+
### Install Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core package in the application
74+
75+
Run the following command in the terminal to install `Syncfusion.EJ2.AspNet.Core` NuGet package in the application.
76+
77+
{% tabs %}
78+
{% highlight c# tabtitle=".NET CLI" %}
79+
dotnet add package Syncfusion.EJ2.AspNet.Core
80+
{% endhighlight %}
81+
{% endtabs %}
82+
83+
Refer to [NuGet packages topic](../nuget-packages/) for more details about NuGet packages.
84+
3985
## Add Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Tag Helper
4086

4187
Open `~/Pages/_ViewImports.cshtml` file and import the `Syncfusion.EJ2` TagHelper.
@@ -96,7 +142,7 @@ Now, add the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Diagr
96142
{% endhighlight %}
97143
{% endtabs %}
98144

99-
Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to run the app. Then, the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Diagram control will be rendered in the default web browser.
145+
Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to run the app in Visual Studio. Alternatively, you can run the `dotnet run` command in the terminal to run the sample in Visual Studio Code. Then, the Syncfusion<sup style="font-size:70%">&reg;</sup> ASP.NET Core Diagram control will be rendered in the default web browser.
100146

101147
![ASP.NET Core Diagram Control](images/diagram-control.png)
102148

0 commit comments

Comments
 (0)