|
11 | 11 | <PackageReference Include="Microsoft.DotNet.SourceBuild.Tasks" Version="$(MicrosoftDotNetSourceBuildTasksVersion)" IsImplicitlyDefined="true" /> |
12 | 12 | </ItemGroup> |
13 | 13 |
|
| 14 | + <PropertyGroup> |
| 15 | + <SetUpSourceBuildIntermediateNupkgCache Condition="'$(SetUpSourceBuildIntermediateNupkgCache)' == ''">true</SetUpSourceBuildIntermediateNupkgCache> |
| 16 | + </PropertyGroup> |
| 17 | + |
14 | 18 | <!-- Because the condition here is rather complex, it should read as the following: |
15 | 19 | - Don't collect intermediates if running the product build |
16 | 20 | - Otherwise, collect if we're forcing it using SetUpSourceBuildIntermediateNupkgCache |
|
19 | 23 | - Building in DotNetBuild mode and we're in the inner repo and this is a source-only build --> |
20 | 24 | <Target Name="CollectSourceBuildIntermediateNupkgDependencies" |
21 | 25 | Condition=" |
22 | | - '$(DotNetBuildFromSourceFlavor)' != 'Product' and '$(DotNetBuildOrchestrator)' != 'true' and |
23 | | - ('$(SetUpSourceBuildIntermediateNupkgCache)' == 'true' or |
24 | | - ('$(ArcadeBuildFromSource)' == 'true' and '$(ArcadeInnerBuildFromSource)' == 'true') or |
| 26 | + '$(DotNetBuildFromSourceFlavor)' != 'Product' and |
| 27 | + '$(DotNetBuildOrchestrator)' != 'true' and |
| 28 | + '$(SetUpSourceBuildIntermediateNupkgCache)' == 'true' and |
| 29 | + (('$(ArcadeBuildFromSource)' == 'true' and '$(ArcadeInnerBuildFromSource)' == 'true') or |
25 | 30 | ('$(DotNetBuildPhase)' == 'InnerRepo' and '$(DotNetBuildSourceOnly)' == 'true'))" |
26 | 31 | DependsOnTargets="GetSourceBuildIntermediateNupkgNameConvention" |
27 | 32 | BeforeTargets="CollectPackageReferences"> |
|
45 | 50 | - If building in DotNetBuild mode and we're in the inner repo and this is a source-only build --> |
46 | 51 | <Target Name="SetUpSourceBuildIntermediateNupkgCache" |
47 | 52 | Condition=" |
48 | | - '$(DotNetBuildFromSourceFlavor)' != 'Product' and '$(DotNetBuildOrchestrator)' != 'true' and |
49 | | - ('$(SetUpSourceBuildIntermediateNupkgCache)' == 'true' or |
50 | | - ('@(SourceBuildIntermediateNupkgReference)' != '' and |
| 53 | + '$(DotNetBuildFromSourceFlavor)' != 'Product' and |
| 54 | + '$(DotNetBuildOrchestrator)' != 'true' and |
| 55 | + '$(SetUpSourceBuildIntermediateNupkgCache)' == 'true' and |
| 56 | + '@(SourceBuildIntermediateNupkgReference)' != '' and |
51 | 57 | (('$(ArcadeBuildFromSource)' == 'true' and '$(ArcadeInnerBuildFromSource)' == 'true') or |
52 | | - ('$(DotNetBuildPhase)' == 'InnerRepo' and '$(DotNetBuildSourceOnly)' == 'true'))))" |
| 58 | + ('$(DotNetBuildPhase)' == 'InnerRepo' and '$(DotNetBuildSourceOnly)' == 'true'))" |
53 | 59 | AfterTargets="Restore"> |
54 | 60 | <ItemGroup> |
55 | 61 | <IntermediateNupkgSourceDir Include="$([MSBuild]::NormalizeDirectory( |
|
0 commit comments