Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add reserved properties MSBuildFileVersion and MSBuildSemanticVersion #6534

Merged
merged 2 commits into from
Jun 17, 2021

Conversation

cdmihai
Copy link
Contributor

@cdmihai cdmihai commented Jun 7, 2021

Context

There's no easy way to get all of MSBuild's version numbers at evaluation time or build time.

Changes Made

Added MSBuildFileVersion and MSBuildSemanticVersion. With these two, users should have all the information they require to mix and match all the version components they want:

image

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 :)

Copy link
Member

@Forgind Forgind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not too worried about breaking users, and the changes look good. I'm wondering more about how much added value this has. Are people asking for it? This is in a very perf-sensitive area, and I've been hearing of issues with adding too many things impacting perf.

@cdmihai
Copy link
Contributor Author

cdmihai commented Jun 11, 2021

@Forgind

how much added value this has

It's useful to tool writers. sdk writers, and general build enthusiasts that follow msbuild changes at the intra-preview granularity, and so they need to differentiate beyond the first two version numbers.

very perf-sensitive area

What perf concerns in particular do you have about this change?

@Forgind Forgind added the merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. label Jun 14, 2021
@rainersigwald rainersigwald added this to the 17.0 milestone Jun 14, 2021
@rainersigwald rainersigwald merged commit d401b50 into dotnet:vs16.11 Jun 17, 2021
@rainersigwald rainersigwald modified the milestones: 17.0, MSBuild 16.11 Jun 17, 2021
cdmihai added a commit to cdmihai/visualstudio-docs that referenced this pull request Jun 17, 2021
The MSBuild change (dotnet/msbuild#6534) will ship with VS 16.11.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants