From 863f1cd91d19dc1c1e5af129b044b3f97b39d345 Mon Sep 17 00:00:00 2001 From: Bryan Thornbury Date: Mon, 14 Mar 2016 16:34:02 -0700 Subject: [PATCH] add the additional probing path to dotnet run remove colon --- src/dotnet/commands/dotnet-run/RunCommand.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/dotnet/commands/dotnet-run/RunCommand.cs b/src/dotnet/commands/dotnet-run/RunCommand.cs index db67a4394..4270cfc16 100644 --- a/src/dotnet/commands/dotnet-run/RunCommand.cs +++ b/src/dotnet/commands/dotnet-run/RunCommand.cs @@ -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 {