Skip to content

Commit

Permalink
Don't overbuild source generator when root building for net48 (#105347)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorHofer authored Jul 24, 2024
1 parent a49f1c2 commit a47eeec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libraries/oob-gen.proj
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<Project Sdk="Microsoft.Build.Traversal">

<PropertyGroup Condition="'$(BuildTargetFramework)' != '' and '$(BuildTargetFramework)' == '$(NetFrameworkCurrent)'">
<TargetFramework>$(BuildTargetFramework)</TargetFramework>
<!-- Filter ProjectReferences to build the best matching target framework only. -->
<FilterTraversalProjectReferences>true</FilterTraversalProjectReferences>
</PropertyGroup>

<!-- Reference all out-of-band generator projects. -->
<ItemGroup>
<ProjectReference Include="$(MSBuildThisFileDirectory)*\gen\**\*.*proj"
Expand Down

0 comments on commit a47eeec

Please sign in to comment.