Add DOTNET_HOST_PATH for dotnet nuget commands

This commit is contained in:
Nikolche Kolev 2018-06-25 14:15:24 -07:00
parent c172433ce7
commit c7cf8a55b8

View file

@ -35,9 +35,14 @@ namespace Microsoft.DotNet.Tools.NuGet
public int Run(string[] args)
{
var nugetApp = new NuGetForwardingApp(args);
nugetApp.WithEnvironmentVariable("DOTNET_HOST_PATH", GetDotnetPath());
return nugetApp.Execute();
}
}
private static string GetDotnetPath()
{
return new Muxer().MuxerPath;
}
}
}