From e71c58c15617fd58f153d0b0782241e5d4239063 Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Tue, 10 Jan 2017 10:43:05 -0800 Subject: [PATCH] Fixing nuget API calls and fixing the nuget test package directory creation, so that nuget can restore using it. --- build/Microsoft.DotNet.Cli.Test.targets | 7 +++++-- build_projects/dotnet-cli-build/DotNetRestore.cs | 14 +++++++++++++- .../CommandResolution/DepsJsonBuilder.cs | 2 +- .../Resolution/PackageDependencyProvider.cs | 2 +- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/build/Microsoft.DotNet.Cli.Test.targets b/build/Microsoft.DotNet.Cli.Test.targets index d38407ea4..10d426160 100644 --- a/build/Microsoft.DotNet.Cli.Test.targets +++ b/build/Microsoft.DotNet.Cli.Test.targets @@ -70,6 +70,8 @@ $(RepoRoot)/test/ $(Stage2Directory) + + /p:RuntimeIdentifier=%(TestPackageProject.PackRuntime) - + ConfigFile="$(RepoRoot)\NuGet.Config" + ProjectPath="%(TestPackageProject.ProjectPath)" />