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: site/jekyll/getting-started/tutorial.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -36,19 +36,19 @@ For this tutorial we'll be using Visual Studio 2015. If you do not already have
36
36
37
37
Start by creating a new ASP.NET Core MVC project:
38
38
39
-
<!-- TODO make thumbnails -->
40
-
<!-- TODO add note about .NET Core vs .NET Framework -->
41
-
42
39
1. File → New → Project
43
40
2. Ensure ".NET Framework 4.6" is selected in the dropdown list at the top
44
41
3. Go to Templates → Visual C# → Web and select the "ASP.NET Core Web Application (.NET Framework)" template. Call it "ReactDemo"
45
-
<imgsrc="/img/tutorial/newproject_core.png"alt="Screenshot: New Project"width="600" />
42
+
[<imgsrc="/img/tutorial/newproject_core_600.png"alt="Screenshot: New Project"width="600" />](/img/tutorial/newproject_core.png)
46
43
3. In the "New ASP.NET Core Web Application" dialog, select the Web Application template. Also, click "Change Authentication" and select "No Authentication"
47
-
<imgsrc="/img/tutorial/new_webapp.png"alt="Screenshot: New ASP.NET Core MVC Project dialog"width="600" />
44
+
[<imgsrc="/img/tutorial/new_webapp_600.png"alt="Screenshot: New ASP.NET Core MVC Project dialog"width="600" />](/img/tutorial/new_webapp.png)
45
+
46
+
Note: We are using .NET Framework in this tutorial, but you can instead use .NET Core if you want to be able to run your site on Linux or Mac OS. Currently .NET Core is missing some of the functionality provided by .NET Framework, so it is recommended to use .NET Framework unless you have a reason to use .NET Core specifically (eg. cross-platform support).
48
47
49
48
### Remove example content
50
49
51
50
The default Web Application template includes some example content that we don't need. Delete the following files:
51
+
52
52
-`Controllers\HomeController.cs`
53
53
-`Views\Home` and `Views\Shared` folders
54
54
-`bundleconfig.json`
@@ -58,7 +58,7 @@ The default Web Application template includes some example content that we don't
58
58
59
59
We need to install ReactJS.NET to the newly-created project. This is accomplished using NuGet, a package manager for .NET. Right-click on the "ReactDemo" project in the Solution Explorer and select "Manage NuGet Packages". Click the "Browse" tab, search for "React.AspNet", and install the **React.AspNet** package.
We also need to modify the `Startup.cs` file to initialize ReactJS.NET. You can learn more about this on the [Getting Started on ASP.NET Core](/getting-started/aspnetcore.html) page. Open `Startup.cs` and perform the following changes:
0 commit comments