novotnyllc/MSBuildSdkExtras

.NET Framework packages now take dependency on Microsoft.NETFramework.ReferenceAssemblies

dotMorten opened this issue · 2 comments

NuGet packages generated with 3.0.22 will cause .NET Framework targets to take a dependency on Microsoft.NETFramework.ReferenceAssemblies in the nuspec.

It seems to me ExtrasImplicitPlatformPackageIsPrivate was meant to default to true and not false.

See discussion:
77e3f3b#commitcomment-45713712

Workaround:

 <PropertyGroup Condition="'$(TargetFramework)'=='net461'">
    <ExtrasImplicitPlatformPackageIsPrivate>true</ExtrasImplicitPlatformPackageIsPrivate> 
 </PropertyGroup>

Fixed in 3.0.23

You rock! ❤️