Skip to content

Commit

Permalink
Avoid copying netfx refs twice during allConfigurations (#34029)
Browse files Browse the repository at this point in the history
Suppress AssetTargetFallback warning
  • Loading branch information
ericstj authored Mar 25, 2020
1 parent 4040e60 commit 40cfb48
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/libraries/restore/netfx/netfx.depproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
<NETStandardSupportPackageVersion>2.0.1-servicing-26011-01</NETStandardSupportPackageVersion>
<NETStandardSupportRoot>$(NuGetPackageRoot)$(NETStandardSupportPackageId.ToLower())\$(NETStandardSupportPackageVersion)\build</NETStandardSupportRoot>
<AddNetStandardSupportPackage Condition="'$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'net47'">true</AddNetStandardSupportPackage>
<TargetFrameworks>net45;net451;net46;net461;net462;net47;net471;net472;$(netcoreappCurrent)</TargetFrameworks>
<TargetFrameworks>net45;net451;net46;net461;net462;net47;net471;net472</TargetFrameworks>
<!-- if we aren't building all configurations, ensure we populate NetFxRefPath for netcoreapp by building this project -->
<TargetFrameworks Condition="'$(BuildAllConfigurations)' != 'true'">$(TargetFrameworks);$(NetCoreAppCurrent)</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' != ''">
<TargetFrameworks Condition="$(TargetFramework.Contains('net4'))">net45;net451;net46;net461;net462;net47;net471;net472</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetsNetFx)' != 'true'">
<PropertyGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
<!-- For things not .NETFramework we need the net472 targeting pack to generate facades -->
<AssetTargetFallback>$(NetFrameworkCurrent)</AssetTargetFallback>
<NoWarn>$(NoWarn);NU1701</NoWarn>
<TargetingPackNugetPackageId>Microsoft.TargetingPack.NETFramework.v4.7.2</TargetingPackNugetPackageId>
</PropertyGroup>

Expand Down Expand Up @@ -67,7 +65,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="$(TargetingPackNugetPackageId)">
<PackageReference Include="$(TargetingPackNugetPackageId)" NoWarn="NU1701">
<Version >$(_TargetingPackVersion)</Version>
</PackageReference>
<PackageReference Include="System.Memory" Condition="'$(TargetFramework)' == 'net45' or '$(TargetFramework)' == 'net46'">
Expand Down

0 comments on commit 40cfb48

Please sign in to comment.