also escape ://
This commit is contained in:
parent
2ea3af799d
commit
667f1cf018
2 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -41,7 +41,6 @@ namespace Microsoft.DotNet.Tests
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
public static IEnumerable<object[]> LibraryDependencyToolArguments
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue