Within a <PropertyGroup />
, existing or create a new one add the following.
<!--Do not create package for windows-->
<WindowsPackageType Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">None</WindowsPackageType>
Save and close.