-
Notifications
You must be signed in to change notification settings - Fork 237
Adding an MSBuildSdkUpdater to the BaseDependenciesTask #2117
Conversation
| } | ||
| 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
| else | ||
| { | ||
| throw new ArgumentException( |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
dagood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM.
weshaggard
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This will allow the the ILProj SDK to be automatically updated. See dotnet/corefx#31512 for more details.