From 9ad67c623c2ea7e37551ac91a67c8f261ac52407 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Tue, 2 Apr 2019 17:27:55 -0500 Subject: [PATCH] Fix IncludeBuildNumberInPackageVersion for official builds 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. --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 8afa10b5a0..e4d0adac46 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -63,7 +63,7 @@ $(MajorVersion).$(MinorVersion).$(BuildNumberMajor).$(BuildNumberMinor) false - true + true $(PreReleaseLabel)