add the additional probing path to dotnet run

remove colon
This commit is contained in:
Bryan Thornbury 2016-03-14 16:34:02 -07:00
parent d5f118273b
commit 863f1cd91d

View file

@ -124,6 +124,12 @@ namespace Microsoft.DotNet.Tools.Run
return result;
}
// Add Nuget Packages Probing Path
var nugetPackagesRoot = _context.PackagesDirectory;
var probingPathArg = "--additionalprobingpath";
_args.Insert(0, nugetPackagesRoot);
_args.Insert(0, probingPathArg);
// Now launch the output and give it the results
var outputPaths = _context.GetOutputPaths(Configuration);
var outputName = outputPaths.RuntimeFiles.Executable;
@ -150,7 +156,9 @@ namespace Microsoft.DotNet.Tools.Run
if (outputName.EndsWith(FileNameSuffixes.DotNet.DynamicLib, StringComparison.OrdinalIgnoreCase))
{
// The executable is a ".dll", we need to call it through dotnet.exe
command = Command.Create("corehost", Enumerable.Concat(new[] { outputName }, _args));
var muxer = new Muxer();
command = Command.Create(muxer.MuxerPath, Enumerable.Concat(new[] { outputName }, _args));
}
else
{