Pass no additional arguments to net451 app

This commit is contained in:
Pavel Krymets 2016-03-31 09:00:25 -07:00
parent 1428eb81cf
commit 7e73e5c379
4 changed files with 15 additions and 7 deletions

View file

@ -124,11 +124,14 @@ 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);
if (!_context.TargetFramework.IsDesktop())
{
// 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);