Skip to content

Commit 649f4a5

Browse files
committed
Update tutorial to cover ASP.NET Core
1 parent afc94d6 commit 649f4a5

File tree

6 files changed

+1247
-167
lines changed

6 files changed

+1247
-167
lines changed

site/jekyll/getting-started/aspnetcore.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Getting started with ReactJS.NET on ASP.NET Core requires a few more steps compa
99
ReactJS.NET requires Visual Studio 2015 and ASP.NET Core RTM (final release). Additionally, ReactJS.NET does not support .NET Core at this point in time, so you will need to ensure your project is not referencing it. If you're creating a new website, use the "ASP.NET Core Web Application (.NET Framework)" project template. Otherwise, make sure your `project.json` references `net452` in its `frameworks` section, **not** `netcoreapp`.
1010

1111
Install the `React.AspNet` package through NuGet. After the package is installed, ReactJS.NET needs to be initialised in your `Startup.cs` file (unfortunately this can not be done automatically like in previous versions of ASP.NET with WebActivator). At the top of the file, add:
12+
1213
```
14+
using Microsoft.AspNetCore.Http;
1315
using React.AspNet;
1416
```
1517

@@ -58,7 +60,7 @@ app.UseReact(config =>
5860
});
5961
```
6062

61-
Finally, add this to `Views/_ViewImports.cshtml` (or create it if it doesn't exist):
63+
Finally, add this to `Views\_ViewImports.cshtml` (or create it if it doesn't exist):
6264

6365
```csharp
6466
@using React.AspNet

0 commit comments

Comments
 (0)