novotnyllc / MSBuildSdkExtras

Extra properties for MSBuild SDK projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dotMorten opened this issue · 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! ❤️