Skip to content

Commit 3a25a3d

Browse files
Taritsyndustinsoftware
authored andcommitted
Fixes for ASP.NET Core Tutorial (#662)
1 parent b28b4c3 commit 3a25a3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

site/jekyll/getting-started/aspnetcore.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ This guide covers enabling server-side rendering and Babel compilation. Getting
1010

1111
ReactJS.NET requires at least Visual Studio 2015 and ASP.NET Core 1.0, but has also been tested with VS 2017 and .NET Core 2.1.
1212

13-
Install the `React.AspNet` package through NuGet. You will also need to install a JS engine to use (either V8 or ChakraCore are recommended). See the [JSEngineSwitcher docs](https://github.com/Taritsyn/JavaScriptEngineSwitcher/wiki/Registration-of-JS-engines) for more information. After these packages are 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).
13+
Install the `React.AspNet` package through NuGet. You will also need to install a JS engine to use (either V8 or ChakraCore are recommended) and `JavaScriptEngineSwitcher.Extensions.MsDependencyInjection` package. See the [JSEngineSwitcher docs](https://github.com/Taritsyn/JavaScriptEngineSwitcher/wiki/Registration-of-JS-engines) for more information. After these packages are 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).
1414

1515
At the top of Startup.cs, add:
1616

1717
```
1818
using Microsoft.AspNetCore.Http;
19-
using JavaScriptEngineSwitcher.Core;
2019
using JavaScriptEngineSwitcher.ChakraCore;
20+
using JavaScriptEngineSwitcher.Extensions.MsDependencyInjection;
2121
using React.AspNet;
2222
```
2323

site/jekyll/tutorials/aspnetcore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ At the top of the file, add:
6666

6767
```csharp
6868
using Microsoft.AspNetCore.Http;
69-
using JavaScriptEngineSwitcher.Core;
7069
using JavaScriptEngineSwitcher.ChakraCore;
70+
using JavaScriptEngineSwitcher.Extensions.MsDependencyInjection;
7171
using React.AspNet;
7272
```
7373

0 commit comments

Comments
 (0)