Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[release/7.0.1xx] Add missing EnableRuleAttributesMustMatch task property #28338

Merged
merged 2 commits into from
Oct 6, 2022

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Oct 5, 2022

Backport of #28336 & #28344

Customer Impact

Customers who use APICompat's PackageValidation feature can't enable the optional AttributesMustMatch rule (in the msbuild frontend) that validates that attributes are compatible between the contract and the implementation. The property/parameter is already exposed in the task but the targets file never passed the msbuild property ApiCompatEnableRuleAttributesMustMatch into the task.

Testing

I verified that the property is now passed into the ValidatePackage task correctly and filed #28337 for adding CI protection.

Risk

Low. This is an opt-in rule and customers need to explicitly set the msbuild property to true.

@ViktorHofer ViktorHofer self-assigned this Oct 5, 2022
@ViktorHofer ViktorHofer changed the title Add missing EnableRuleAttributesMustMatch task parameter [release/7.0.1xx] Add missing EnableRuleAttributesMustMatch task parameter Oct 5, 2022
@ViktorHofer ViktorHofer changed the title [release/7.0.1xx] Add missing EnableRuleAttributesMustMatch task parameter [release/7.0.1xx] Add missing EnableRuleAttributesMustMatch task property Oct 5, 2022
@rbhanda rbhanda added this to the 7.0.0 milestone Oct 6, 2022
@ViktorHofer ViktorHofer merged commit 133529d into release/7.0.1xx Oct 6, 2022
@ViktorHofer ViktorHofer deleted the ViktorHofer-patch-2 branch October 6, 2022 17:47
@ViktorHofer
Copy link
Member Author

Approved offline by Tactics

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants