Add reserved properties MSBuildFileVersion and MSBuildSemanticVersion #6534
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
There's no easy way to get all of MSBuild's version numbers at evaluation time or build time.
Changes Made
Added
MSBuildFileVersion
andMSBuildSemanticVersion
. With these two, users should have all the information they require to mix and match all the version components they want:Testing
Updated version test.
Note
Targeting 16.11 as it only adds new stuff that should not break. Caveat is if users define the new built-in properties. We'll break those users. Though I think those users don't exist :)