Skip to content

Conversation

@ThomasGoulet73
Copy link
Contributor

Description

Future-proofs target framework version increments by using builtin MSBuild functions to compare target framework versions.

Reduces the number of place to update when incrementing the target framework version.

This PR could be merged before #5901 to reduce diff or after to reduce diff of future target framework version increments.

The changes in this PR requires MSBuild 16.5 since VersionGreaterThanOrEquals was added in this version.

Customer Impact

Build only.

Regression

No.

Testing

Local build + CI.

Risk

None.

/cc @singhashish-wpf @RussKie

@ThomasGoulet73 ThomasGoulet73 requested a review from a team as a code owner January 5, 2022 05:55
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jan 5, 2022
@ghost ghost requested review from SamBent, fabiant3 and ryalanms January 5, 2022 05:55
@singhashish-wpf singhashish-wpf merged commit 9a604cb into dotnet:main Jan 5, 2022
@ThomasGoulet73 ThomasGoulet73 deleted the use-msbuild-version-compare branch January 5, 2022 14:18
@RussKie
Copy link
Contributor

RussKie commented Jan 5, 2022

Nice!

@ghost ghost locked as resolved and limited conversation to collaborators Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants