Skip to content

Commit

Permalink
Default BuildTargetFramework to NetCoreAppCurrent so that the ref is
Browse files Browse the repository at this point in the history
generated for the best tfm rather than all.
  • Loading branch information
safern committed Nov 20, 2021
1 parent 9962c10 commit 849a8ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eng/outerBuild.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<Project>
<Target Name="GenerateReferenceAssemblySource" DependsOnTargets="GetProjectWithBestTargetFrameworks">
<Target Name="SetBuildTargetFramework">
<PropertyGroup>
<BuildTargetFramework Condition="'$(BuildTargetFramework)' == ''">$(NetCoreAppCurrent)</BuildTargetFramework>
</PropertyGroup>
</Target>

<Target Name="GenerateReferenceAssemblySource" DependsOnTargets="SetBuildTargetFramework;GetProjectWithBestTargetFrameworks">
<MSBuild Projects="@(InnerBuildProjectsWithBestTargetFramework)"
Targets="GenerateReferenceAssemblySource"
BuildInParallel="$(BuildInParallel)">
Expand Down

0 comments on commit 849a8ab

Please sign in to comment.