Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Conversation

@tannergooding
Copy link
Member

This will allow the the ILProj SDK to be automatically updated. See dotnet/corefx#31512 for more details.

@tannergooding
Copy link
Member Author

CC. @eerhardt, @dagood

}
else if (!string.IsNullOrEmpty(msbuildSdkName))
{
updater.Regex = CreateMSBuildSdkUpdateRegex(Regex.Escape(msbuildSdkName), nameof(msbuildSdkName));

This comment was marked as spam.

This comment was marked as spam.

}
else
{
throw new ArgumentException(

This comment was marked as spam.

This comment was marked as spam.

new Regex($@"<{elementName}>(?<{contentGroupName}>.*)</{elementName}>");

protected Regex CreateMSBuildSdkUpdateRegex(string msbuildSdkName, string contentGroupName) =>
new Regex($@"""{msbuildSdkName}"": ""(?<{contentGroupName}>.*)""");

This comment was marked as spam.

This comment was marked as spam.

Copy link
Member

@dagood dagood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM.

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants