Ensure additional probing paths don't have a trailing slash.

Workaround for https://github.com/dotnet/core-setup/issues/228.
This commit is contained in:
Eric Erhardt 2016-07-26 22:27:25 -05:00
parent ba0f71f5a5
commit 104ca5219d
4 changed files with 22 additions and 3 deletions

View file

@ -9,6 +9,7 @@ using System.Runtime.InteropServices;
using Microsoft.DotNet.Cli.Utils;
using Microsoft.DotNet.InternalAbstractions;
using Microsoft.DotNet.ProjectModel;
using Microsoft.DotNet.Tools.Common;
using NuGet.Frameworks;
namespace Microsoft.DotNet.Tools.Run
@ -152,7 +153,8 @@ namespace Microsoft.DotNet.Tools.Run
foreach (var packageFolder in _context.LockFile.PackageFolders)
{
hostArgs.Insert(0, packageFolder.Path);
// DotNetHost doesn't handle additional probing paths with a trailing slash
hostArgs.Insert(0, PathUtility.EnsureNoTrailingSlash(packageFolder.Path));
hostArgs.Insert(0, probingPathArg);
}
}