Skip to content

Fix IncludeBuildNumberInPackageVersion for official builds #3181

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

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Apr 2, 2019

When doing an official build and setting a AzDO build variable, the variable turns into an environment variable. When MSBuild props/targets files declare a property, if they don't check if the property is already set, the MSBuild props file will override the environment variable. This causes the AzDO build variable to be ignored.

Adding a check if the IncludeBuildNumberInPackageVersion property is already set before setting it in Directory.Build.props.

When doing an official build and setting a AzDO build variable, the variable turns into an environment variable. When MSBuild props/targets files declare a property, if they don't check if the property is already set, the MSBuild props file will override the environment variable. This causes the AzDO build variable to be ignored.

Adding a check if the IncludeBuildNumberInPackageVersion property is already set before setting it in Directory.Build.props.
@eerhardt eerhardt requested review from codemzs, shauheen and safern April 2, 2019 22:28
@eerhardt
Copy link
Member Author

eerhardt commented Apr 2, 2019

Merging to unblock the build. The CI legs got passed the build part, so this change is good.

@eerhardt eerhardt merged commit 62a5b34 into dotnet:release/1.0 Apr 2, 2019
@eerhardt eerhardt deleted the FixBuildNumberBuild branch April 2, 2019 22:39
@ghost ghost locked as resolved and limited conversation to collaborators Mar 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants