Suppress dependencies when packing
<PropertyGroup>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
</PropertyGroup><PropertyGroup>
<!-- Opt out of all framework references/dependencies -->
<PackFrameworkReferences>false</PackFrameworkReferences>
</PropertyGroup>
<ItemDefinitionGroup>
<PackageReference>
<!-- Unless specified otherwise, opt-out of all dependencies -->
<Pack>false</Pack>
</PackageReference>
</ItemDefinitionGroup>
<ItemGroup>
<!-- Example of explicitly opting in for a particular one -->
<PackageReference Include="Foo" Pack="true" />
<PackageReference Include="Bar" /> <!-- Will not be packed -->
</ItemGrop>Last updated