workaround #901 by using corerun instead of corehost

This commit is contained in:
Andrew Stanton-Nurse 2016-01-19 15:04:03 -08:00
parent 3d493f7d9d
commit 3b261afb47
2 changed files with 6 additions and 2 deletions

View file

@ -30,7 +30,10 @@ namespace Microsoft.DotNet.Tools.Restore
private static Command Run(IEnumerable<string> nugetArgs) private static Command Run(IEnumerable<string> nugetArgs)
{ {
return Command.Create(CoreHost.LocalHostExePath, Enumerable.Concat( var corerun = Path.Combine(
AppContext.BaseDirectory,
"corerun" + Constants.ExeSuffix);
return Command.Create(corerun, Enumerable.Concat(
new[] { Path.Combine(AppContext.BaseDirectory, "NuGet.CommandLine.XPlat.dll") }, new[] { Path.Combine(AppContext.BaseDirectory, "NuGet.CommandLine.XPlat.dll") },
nugetArgs)); nugetArgs));
} }

View file

@ -13,6 +13,7 @@
"dependencies": { "dependencies": {
"NuGet.CommandLine.XPlat": "3.4.0-*", "NuGet.CommandLine.XPlat": "3.4.0-*",
"Microsoft.NETCore.Platforms": "1.0.1-rc2-23608", "Microsoft.NETCore.Platforms": "1.0.1-rc2-23608",
"Microsoft.NETCore.TestHost": "1.0.0-rc2-23608",
"NETStandard.Library": "1.0.0-rc2-23608", "NETStandard.Library": "1.0.0-rc2-23608",
"System.Linq": "4.0.1-beta-23504", "System.Linq": "4.0.1-beta-23504",
"System.Collections": "4.0.11-beta-23504", "System.Collections": "4.0.11-beta-23504",