You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/diagram/EJ2_ASP.NETCORE/getting-started.md
+49-3Lines changed: 49 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,17 @@ This section briefly explains about how to include [ASP.NET Core Diagram](https:
16
16
17
17
[System requirements for ASP.NET Core controls](https://ej2.syncfusion.com/aspnetcore/documentation/system-requirements)
18
18
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
20
24
21
25
*[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)
22
26
23
27
*[Create a Project using Syncfusion<supstyle="font-size:70%">®</sup> ASP.NET Core Extension](https://ej2.syncfusion.com/aspnetcore/documentation/getting-started/project-template)
24
28
25
-
## Install ASP.NET Core package in the application
29
+
###Install ASP.NET Core package in the application
26
30
27
31
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.
N> Syncfusion<supstyle="font-size:70%">®</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<supstyle="font-size:70%">®</sup> license key.
38
42
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<supstyle="font-size:70%">®</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
+
39
85
## Add Syncfusion<supstyle="font-size:70%">®</sup> ASP.NET Core Tag Helper
40
86
41
87
Open `~/Pages/_ViewImports.cshtml` file and import the `Syncfusion.EJ2` TagHelper.
@@ -96,7 +142,7 @@ Now, add the Syncfusion<sup style="font-size:70%">®</sup> ASP.NET Core Diagr
96
142
{% endhighlight %}
97
143
{% endtabs %}
98
144
99
-
Press <kbd>Ctrl</kbd>+<kbd>F5</kbd> (Windows) or <kbd>⌘</kbd>+<kbd>F5</kbd> (macOS) to run the app. Then, the Syncfusion<supstyle="font-size:70%">®</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<supstyle="font-size:70%">®</sup> ASP.NET Core Diagram control will be rendered in the default web browser.
0 commit comments