From 7c7a4a905e2d1677a55c306b1b3047d413965526 Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Mon, 1 Feb 2016 10:52:23 -0800 Subject: [PATCH] Correct project dependencies - use latest `System.Net.Http`, not hard-coded version - add imports for the latest CLI - see aspnet/FileSystem@4a9a0fd for the inspiration --- samples/AntiforgerySample/project.json | 5 ++++- .../project.json | 11 ++++++++--- .../project.json | 4 +++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/samples/AntiforgerySample/project.json b/samples/AntiforgerySample/project.json index dc978175bc..516b8f4f9f 100644 --- a/samples/AntiforgerySample/project.json +++ b/samples/AntiforgerySample/project.json @@ -9,6 +9,7 @@ "Microsoft.AspNetCore.Routing.Extensions": "1.0.0-*", "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*", "Microsoft.AspNetCore.StaticFiles": "1.0.0-*", + "Microsoft.NETCore.Platforms": "1.0.1-*", "Newtonsoft.Json": "7.0.1" }, @@ -22,7 +23,9 @@ "frameworks": { "dnx451": { }, - "dnxcore50": { } + "dnxcore50": { + "imports": "portable-net451+win8" + } }, "publishExclude": [ diff --git a/test/Microsoft.AspNetCore.Antiforgery.FunctionalTests/project.json b/test/Microsoft.AspNetCore.Antiforgery.FunctionalTests/project.json index 705dc877d8..b6125bd758 100644 --- a/test/Microsoft.AspNetCore.Antiforgery.FunctionalTests/project.json +++ b/test/Microsoft.AspNetCore.Antiforgery.FunctionalTests/project.json @@ -2,7 +2,8 @@ "dependencies": { "AntiforgerySample": "1.0.0-*", "Microsoft.AspNetCore.TestHost": "1.0.0-*", - "Microsoft.AspNetCore.Testing": "1.0.0-*" + "Microsoft.AspNetCore.Testing": "1.0.0-*", + "Microsoft.NETCore.Platforms": "1.0.1-*" }, "testRunner": "xunit", "commands": { @@ -12,15 +13,19 @@ "dnx451": { "dependencies": { "Moq": "4.2.1312.1622", - "System.Net.Http": "4.0.1-rc2-23621", "xunit.runner.console": "2.1.0" + }, + "frameworkAssemblies": { + "System.Net.Http": "" } }, "dnxcore50": { "dependencies": { "moq.netcore": "4.4.0-beta8", + "System.Net.Http": "4.0.1-*", "xunit.runner.aspnet": "2.0.0-aspnet-*" - } + }, + "imports": "portable-net451+win8" } } } diff --git a/test/Microsoft.AspNetCore.Antiforgery.Test/project.json b/test/Microsoft.AspNetCore.Antiforgery.Test/project.json index a8e16f08a1..fee3adecdb 100644 --- a/test/Microsoft.AspNetCore.Antiforgery.Test/project.json +++ b/test/Microsoft.AspNetCore.Antiforgery.Test/project.json @@ -8,6 +8,7 @@ "Microsoft.AspNetCore.Http": "1.0.0-*", "Microsoft.Extensions.DependencyInjection": "1.0.0-*", "Microsoft.Extensions.WebEncoders": "1.0.0-*", + "Microsoft.NETCore.Platforms": "1.0.1-*", "xunit": "2.1.0-*" }, "testRunner": "xunit", @@ -28,7 +29,8 @@ "dependencies": { "moq.netcore": "4.4.0-beta8", "xunit.runner.aspnet": "2.0.0-aspnet-*" - } + }, + "imports": "portable-net451+win8" } } }