Skip to content

Commit 07021aa

Browse files
committed
Upgrade to ASP.NET 5 RC1
1 parent 8521630 commit 07021aa

12 files changed

+43
-44
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ os: Visual Studio 2015
33
install:
44
- set PATH=%ProgramFiles(x86)%\MSBuild\14.0\Bin;%PATH%
55
- dnvm update-self
6-
- dnvm install 1.0.0-beta8
6+
- dnvm install rc1-final
77
build:
88
project: build.proj
99
verbosity: normal

src/React.AspNet/BabelFileMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
using Microsoft.AspNet.Hosting;
1515
using Microsoft.AspNet.Http;
1616
using Microsoft.AspNet.StaticFiles;
17-
using Microsoft.Framework.Logging;
17+
using Microsoft.Extensions.Logging;
1818

1919
namespace React.AspNet
2020
{

src/React.AspNet/BabelFileSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using IOwinFileSystem = Microsoft.Owin.FileSystems.IFileSystem;
1818
#else
1919
using Microsoft.AspNet.FileProviders;
20-
using Microsoft.Framework.Primitives;
20+
using Microsoft.Extensions.Primitives;
2121
using IOwinFileSystem = Microsoft.AspNet.FileProviders.IFileProvider;
2222
using PhysicalFileSystem = Microsoft.AspNet.FileProviders.PhysicalFileProvider;
2323
#endif

src/React.AspNet/HtmlHelperExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static IHtmlString ReactWithInit<T>(
124124
};
125125
#else
126126
var script = new TagBuilder("script");
127-
script.InnerHtml.AppendEncoded(reactComponent.RenderJavaScript());
127+
script.InnerHtml.AppendHtml(reactComponent.RenderJavaScript());
128128
#endif
129129
return new HtmlString(html + System.Environment.NewLine + script.ToString());
130130
}
@@ -145,7 +145,7 @@ public static IHtmlString ReactInitJavaScript(this IHtmlHelper htmlHelper)
145145
return new HtmlString(tag.ToString());
146146
#else
147147
var tag = new TagBuilder("script");
148-
tag.InnerHtml.AppendEncoded(script);
148+
tag.InnerHtml.AppendHtml(script);
149149
return tag;
150150
#endif
151151
}

src/React.AspNet/HttpContextLifetimeProvider.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@
1010
using System;
1111
using System.Collections.Concurrent;
1212
using System.Linq;
13-
using Microsoft.AspNet.Hosting;
1413
using Microsoft.AspNet.Http;
15-
using Microsoft.Framework.DependencyInjection;
1614
using React.Exceptions;
1715
using React.TinyIoC;
16+
using Microsoft.Extensions.DependencyInjection;
1817

1918
namespace React.AspNet
2019
{

src/React.AspNet/ReactBuilderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
using System;
1111
using Microsoft.AspNet.Builder;
1212
using Microsoft.AspNet.Hosting;
13-
using Microsoft.Dnx.Runtime;
14-
using Microsoft.Framework.DependencyInjection;
13+
using Microsoft.Extensions.PlatformAbstractions;
1514
using React.Exceptions;
1615
using React.TinyIoC;
16+
using Microsoft.Extensions.DependencyInjection;
1717

1818
namespace React.AspNet
1919
{

src/React.AspNet/ReactServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10-
using Microsoft.Framework.DependencyInjection;
10+
using Microsoft.Extensions.DependencyInjection;
1111

1212
namespace React.AspNet
1313
{

src/React.AspNet/project.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
}
1515
}
1616
},
17-
"dependencies": {
18-
"JsPool": "0.3.1",
19-
"Microsoft.Framework.DependencyInjection": "1.0.0-beta8",
20-
"Microsoft.AspNet.Mvc.Core": "6.0.0-beta8",
21-
"Microsoft.AspNet.StaticFiles": "1.0.0-beta8",
22-
"Microsoft.AspNet.FileProviders.Physical": "1.0.0-beta8",
23-
"Microsoft.AspNet.Mvc.ViewFeatures": "6.0.0-beta8",
24-
"MsieJavaScriptEngine": "1.5.1",
25-
"React.Core": "",
26-
"JavaScriptEngineSwitcher.Core": "1.2.4.0",
27-
"JavaScriptEngineSwitcher.Msie": "1.2.4",
28-
"JavaScriptEngineSwitcher.V8": "1.2.4"
29-
},
17+
"dependencies": {
18+
"JsPool": "0.3.1",
19+
"Microsoft.AspNet.Mvc.Core": "6.0.0-rc1-final",
20+
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
21+
"Microsoft.AspNet.FileProviders.Physical": "1.0.0-rc1-final",
22+
"Microsoft.AspNet.Mvc.ViewFeatures": "6.0.0-rc1-final",
23+
"MsieJavaScriptEngine": "1.5.1",
24+
"React.Core": "",
25+
"JavaScriptEngineSwitcher.Core": "1.2.4.0",
26+
"JavaScriptEngineSwitcher.Msie": "1.2.4",
27+
"JavaScriptEngineSwitcher.V8": "1.2.4",
28+
"Microsoft.Extensions.DependencyInjection": "1.0.0-rc1-final"
29+
},
3030
"frameworks": {
3131
"dnx451": { }
3232
},

src/React.Sample.Mvc6/Startup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
using Microsoft.AspNet.Builder;
1111
using Microsoft.AspNet.Hosting;
12-
using Microsoft.Dnx.Runtime;
13-
using Microsoft.Framework.Configuration;
14-
using Microsoft.Framework.DependencyInjection;
15-
using Microsoft.Framework.Logging;
12+
using Microsoft.Extensions.Configuration;
13+
using Microsoft.Extensions.DependencyInjection;
14+
using Microsoft.Extensions.Logging;
15+
using Microsoft.Extensions.PlatformAbstractions;
1616
using React.AspNet;
1717

1818
namespace React.Sample.Mvc6

src/React.Sample.Mvc6/project.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"webroot": "wwwroot",
33
"version": "2.1.1-*",
4-
"dependencies": {
5-
"Microsoft.AspNet.Mvc": "6.0.0-beta8",
6-
"Microsoft.AspNet.Diagnostics": "1.0.0-beta8",
7-
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-beta8",
8-
"Microsoft.AspNet.Server.Kestrel": "1.0.0-beta8",
9-
"Microsoft.AspNet.StaticFiles": "1.0.0-beta8",
10-
"Microsoft.Framework.Configuration.EnvironmentVariables": "1.0.0-beta8",
11-
"Microsoft.Framework.Configuration.Json": "1.0.0-beta8",
12-
"Microsoft.Framework.Logging": "1.0.0-beta8",
13-
"Microsoft.Framework.Logging.Console": "1.0.0-beta8",
14-
"React.AspNet": "",
15-
"React.Core": "",
16-
"JavaScriptEngineSwitcher.V8": "1.2.4.0",
17-
"JavaScriptEngineSwitcher.Msie": "1.2.4.0"
18-
},
4+
"dependencies": {
5+
"Microsoft.AspNet.Mvc": "6.0.0-rc1-final",
6+
"Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final",
7+
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
8+
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
9+
"Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final",
10+
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc1-final",
11+
"Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final",
12+
"Microsoft.Extensions.Logging": "1.0.0-rc1-final",
13+
"Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final",
14+
"React.AspNet": "",
15+
"React.Core": "",
16+
"JavaScriptEngineSwitcher.V8": "1.2.4.0",
17+
"JavaScriptEngineSwitcher.Msie": "1.2.4.0"
18+
},
1919
"commands": {
2020
"web": "Microsoft.AspNet.Server.Kestrel",
2121
"gen": "Microsoft.Framework.CodeGeneration"

0 commit comments

Comments
 (0)