Skip to content

Fix IncludeBuildNumberInPackageVersion for official builds #3182

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 3, 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.

This is a cherry-pick of #3181 for the master branch.

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:30
@codecov
Copy link

codecov bot commented Apr 2, 2019

Codecov Report

Merging #3182 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3182      +/-   ##
==========================================
- Coverage   72.54%   72.53%   -0.01%     
==========================================
  Files         807      807              
  Lines      144774   144774              
  Branches    16208    16208              
==========================================
- Hits       105021   105011      -10     
- Misses      35339    35347       +8     
- Partials     4414     4416       +2
Flag Coverage Δ
#Debug 72.53% <ø> (-0.01%) ⬇️
#production 68.12% <ø> (-0.01%) ⬇️
#test 88.82% <ø> (ø) ⬆️
Impacted Files Coverage Δ
...c/Microsoft.ML.FastTree/Utils/ThreadTaskManager.cs 79.48% <0%> (-20.52%) ⬇️
src/Microsoft.ML.Maml/MAML.cs 24.75% <0%> (-1.46%) ⬇️
...soft.ML.Data/DataLoadSave/Text/TextLoaderCursor.cs 84.9% <0%> (+0.2%) ⬆️

@eerhardt eerhardt merged commit 9a80b78 into dotnet:master Apr 3, 2019
@eerhardt eerhardt deleted the FixBuildNumberMaster branch April 3, 2019 16:56
@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