Switch source build property to DotNetBuildFromSource
authorWes Haggard <Wes.Haggard@microsoft.com>
Mon, 30 Apr 2018 23:47:09 +0000 (16:47 -0700)
committerWes Haggard <Wes.Haggard@microsoft.com>
Tue, 1 May 2018 18:33:53 +0000 (11:33 -0700)
Detect source-build via DotNetBuildFromSource instead of
DotNetBuildOffline which is set for the tarball build.

src/.nuget/dir.traversal.targets

index 52a33c4..33d8657 100644 (file)
@@ -6,10 +6,10 @@
   <PropertyGroup Condition="'$(BuildIdentityPackage)' == ''">
     <BuildIdentityPackage>true</BuildIdentityPackage>
 
-    <!-- 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 DotNetBuildOffline into account. -->
-    <BuildingAnOfficialBuildLeg Condition="'$(OfficialBuildId)' != '' AND '$(DotNetBuildOffline)' != 'true'">true</BuildingAnOfficialBuildLeg>
+    <!-- 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="'$(OfficialBuildId)' != '' AND '$(DotNetBuildFromSource)' != 'true'">true</BuildingAnOfficialBuildLeg>
 
     <!-- During an official build, only build identity packages on windows x64 legs -->
     <BuildIdentityPackage Condition="'$(BuildingAnOfficialBuildLeg)' == 'true' AND ('$(OS)' != 'Windows_NT' OR '$(BuildArch)' != 'x64')">false</BuildIdentityPackage>
@@ -22,7 +22,7 @@
     <ItemGroup>
       <_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == '$(PackageRID)'" />
     </ItemGroup>
-    
+
     <ItemGroup Condition="'$(BuildIdentityPackage)' == 'true'">
       <_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == ''" />
     </ItemGroup>