also escape ://

This commit is contained in:
jonsequitur 2017-02-01 10:09:54 -08:00
parent 2ea3af799d
commit 667f1cf018
2 changed files with 3 additions and 2 deletions

View file

@ -80,8 +80,10 @@ namespace Microsoft.DotNet.Tools.MSBuild
}
private static string Escape(string arg) =>
// this is a workaround for https://github.com/Microsoft/msbuild/issues/1622
(arg.StartsWith("/p:RestoreSources=", StringComparison.OrdinalIgnoreCase)) ?
arg.Replace(";", "%3B") : // <-- this is a workaround for https://github.com/Microsoft/msbuild/issues/1622
arg.Replace(";", "%3B")
.Replace("://", ":%2F%2F") :
arg;
private static string GetMSBuildExePath()

View file

@ -41,7 +41,6 @@ namespace Microsoft.DotNet.Tests
};
}
}
public static IEnumerable<object[]> LibraryDependencyToolArguments
{
get