Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

escape semicolons when forwarding RestoreSources to MSBuild #5539

Merged

Conversation

jonsequitur
Copy link

This change adds a workaround for dotnet/msbuild#1622 into MSBuildForwardingApp.

@jonsequitur
Copy link
Author

@cdmihai @piotrpMSFT @livarcocc

@@ -77,6 +79,11 @@ internal static CommandOption AddVerbosityOption(CommandLineApplication app)
return app.Option("-v|--verbosity", LocalizableStrings.VerbosityOptionDescription, CommandOptionType.SingleValue);
}

private static string Escape(string arg) =>

This comment was marked as spam.

This comment was marked as spam.

@@ -77,6 +79,11 @@ internal static CommandOption AddVerbosityOption(CommandLineApplication app)
return app.Option("-v|--verbosity", LocalizableStrings.VerbosityOptionDescription, CommandOptionType.SingleValue);
}

private static string Escape(string arg) =>
(arg.StartsWith("/p:RestoreSources=", StringComparison.OrdinalIgnoreCase)) ?
arg.Replace(";", "%3B") : // <-- this is a workaround for https://github.com/Microsoft/msbuild/issues/1622

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@jonsequitur jonsequitur force-pushed the msbuild-RestoreSources-escaping branch from 6f6d6c5 to 905db12 Compare February 1, 2017 22:13
@@ -77,6 +86,37 @@ public void When_help_is_invoked_Then_MSBuild_extra_options_text_is_included_in_
}

[Fact]
public void WhenRestoreSourcesStartsWithUnixPathThenHttpsSourceIsParsedCorrectly()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@TheRealPiotrP
Copy link

@dotnet-bot test Fedora23 x64 Debug Build please.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants