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

Adding an MSBuildSdkUpdater to the BaseDependenciesTask - #2117

Merged
tannergooding merged 1 commit into
dotnet:masterfrom
tannergooding:msbuild-sdks
Aug 7, 2018
Merged

Adding an MSBuildSdkUpdater to the BaseDependenciesTask#2117
tannergooding merged 1 commit into
dotnet:masterfrom
tannergooding:msbuild-sdks

Conversation

@tannergooding

Copy link
Copy Markdown
Member

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

@tannergooding

Copy link
Copy Markdown
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.

@dagood dagood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, LGTM.

@weshaggard weshaggard left a comment

Copy link
Copy Markdown
Member

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