diff options
author | Anirudh Agnihotry <anirudhagnihotry098@gmail.com> | 2021-01-06 09:42:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 09:42:47 +0300 |
commit | dd3da2b5e8d4655414f8b6fbe3a97fbe0f8ee8af (patch) | |
tree | e209fb56101ca95d08b180685c3ea463f2608863 /Directory.Build.props | |
parent | 9053d5d9c77bdba118317044bb9ead893149c66c (diff) |
set BuildingInsideOfficialBuild (#46615)
Diffstat (limited to 'Directory.Build.props')
-rw-r--r-- | Directory.Build.props | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Directory.Build.props b/Directory.Build.props index b2e27af4fcb..38fcec3e0c9 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -3,6 +3,10 @@ <!-- For non-SDK projects that import this file and then import Microsoft.Common.props, tell Microsoft.Common.props not to import Directory.Build.props again. --> <ImportDirectoryBuildProps>false</ImportDirectoryBuildProps> + <!-- Used to determine if we should build some packages only once across multiple official build legs. + For offline builds we still set OfficialBuildId but we need to build all the packages for a single + leg only, so we also take DotNetBuildFromSource into account. --> + <BuildingAnOfficialBuildLeg Condition="'$(BuildingAnOfficialBuildLeg)' == '' and '$(OfficialBuildId)' != '' and '$(DotNetBuildFromSource)' != 'true'">true</BuildingAnOfficialBuildLeg> </PropertyGroup> <PropertyGroup Label="CalculateTargetOS"> |