add the additional probing path to dotnet run
remove colon
This commit is contained in:
parent
d5f118273b
commit
863f1cd91d
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue