Skip to content

Commit

Permalink
Do not build Targeting pack in source-build (dotnet#40870)
Browse files Browse the repository at this point in the history
* Do not build Targeting pack in source-build

* Update src/installer/pkg/projects/Directory.Build.targets

Co-authored-by: Davis Goodin <[email protected]>

Co-authored-by: Davis Goodin <[email protected]>
  • Loading branch information
NikolaMilosavljevic and dagood authored Aug 17, 2020
1 parent 096578e commit af03b04
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/installer/pkg/projects/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@
</PropertyGroup>
</Target>

<!--
We should not build some pkgproj in source-build (i.e. targeting-pack).
-->
<Target Name="GetSourceBuildSkipBuildProps"
Condition="'$(DotNetBuildFromSource)' == 'true' and '$(AlwaysBuildEvenInSourceBuild)' != 'true'"
BeforeTargets="GetSkipBuildProps">
<PropertyGroup Condition="'$(FrameworkPackType)' == 'targeting'">
<SkipBuild>true</SkipBuild>
</PropertyGroup>
</Target>

<PropertyGroup Condition="'$(RuntimeFlavor)' == 'Mono' and '$(TargetsMobile)' != 'true'">
<RuntimeSpecificFrameworkSuffix>.Mono</RuntimeSpecificFrameworkSuffix>
</PropertyGroup>
Expand Down

0 comments on commit af03b04

Please sign in to comment.