-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Remove conditional-evaluation-order warning #1698
Copy link
Copy link
Open
Labels
Area: LanguageIssues impacting the MSBuild programming language.Issues impacting the MSBuild programming language.help wantedIssues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.Issues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.triaged
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
Area: LanguageIssues impacting the MSBuild programming language.Issues impacting the MSBuild programming language.help wantedIssues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.Issues that the core team doesn't plan to work on, but would accept a PR for. Comment to claim.triaged
The warning
is emitted whenever a condition has an
andand anorin parallel, for exampleX and Y or Z.Looking through ancient history, it appears to have been introduced in MSBuild 3.5 in 2007, because a bug in MSBuild 2.0 that caused unexpected evaluation order was fixed then.
It feels wrong to emit an informational-only warning about a behavior change that happened 10 years ago.
Eliminating the check for this warning would allow pruning a tree of methods that exist only to provide it. They're currently in the code in
REMOVE_COMPAT_WARNINGregions. I propose to do just what that implies.