Skip to content

Fix IncludeBuildNumberInPackageVersion for official builds - #3181

Merged
eerhardt merged 1 commit into
dotnet:release/1.0from
eerhardt:FixBuildNumberBuild
Apr 2, 2019
Merged

Fix IncludeBuildNumberInPackageVersion for official builds#3181
eerhardt merged 1 commit into
dotnet:release/1.0from
eerhardt:FixBuildNumberBuild

Conversation

@eerhardt

@eerhardt eerhardt commented Apr 2, 2019

Copy link
Copy Markdown
Member

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, safern and shauheen April 2, 2019 22:28
@eerhardt

eerhardt commented Apr 2, 2019

Copy link
Copy Markdown
Member Author

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