Skip to content

Commit

Permalink
adding outerBuild\InnerBuild structure for generate reference source (d…
Browse files Browse the repository at this point in the history
…otnet#31892)

* Using new custom target from arcade

* removing the outerbuild directory
  • Loading branch information
Anipik authored Feb 12, 2020
1 parent bd98efe commit 3cd83d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
8 changes: 8 additions & 0 deletions eng/outerBuild.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<Target Name="GenerateReferenceSource" DependsOnTargets="GetProjectWithBestTargetFrameworks">
<MSBuild Projects="@(InnerBuildProjectsWithBestTargetFramework)"
Targets="GenerateReferenceSource"
BuildInParallel="$(BuildInParallel)">
</MSBuild>
</Target>
</Project>
15 changes: 2 additions & 13 deletions eng/testing/outerBuild.targets
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
<Project>
<Target Name="Test">
<ChooseBestTargetFrameworksTask BuildTargetFrameworks="$(BuildTargetFramework)-$(OSGroup)"
SupportedTargetFrameworks="$(TargetFrameworks)"
RuntimeGraph="$(RuntimeGraph)" >
<Output TaskParameter="BestTargetFrameworks" ItemName="_BestTargetFramework" />
</ChooseBestTargetFrameworksTask>

<AddTargetFrameworksToProjectTask ProjectName="$(MSBuildProjectFile)"
BestTargetFrameworks="@(_BestTargetFramework)" >
<Output TaskParameter="InnerBuildProjects" ItemName="TestProject" />
</AddTargetFrameworksToProjectTask>

<MSBuild Projects="@(TestProject)"
<Target Name="Test" DependsOnTargets="GetProjectWithBestTargetFrameworks">
<MSBuild Projects="@(InnerBuildProjectsWithBestTargetFramework)"
Targets="Test"
BuildInParallel="$(BuildInParallel)">
</MSBuild>
Expand Down
2 changes: 2 additions & 0 deletions src/libraries/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@
<Message Text="Generated reference assembly source code: $(_RefSourceFileOutputPath)" />
</Target>

<Import Project="$(RepositoryEngineeringDir)outerBuild.targets" Condition="'$(IsCrossTargetingBuild)' == 'true'" />

<!-- Import Packaging targets -->
<Import Project="$(RepositoryEngineeringDir)packaging.targets" />

Expand Down

0 comments on commit 3cd83d8

Please sign in to comment.