Build dependencies carry over to Nugetizer package #6041
Labels
missing-required-type
The required type label is missing.
Product:NuGetizer
A 1st party alternative to pack
There is no way to stop library packages referenced by my project (such as Microsoft.Build.Framework) becoming dependencies of my package.
This is a big problem when I'm writing a build package, because it references Microsoft.Build.Framework), but I don't want that dependency to transfer to my consumers. I can't use PrivateAssets=All because I don't want the MSBuild assemblies bundled into my output directory either.
On possible fix would be
IsDevelopmentDependency=true
metadata on thePackageReference
, it is not included as a dependency of the produced package. This is orthogonal to whether/how the assets are consumed, as controlled byPrivateAssets
. This could also bePack=false
for consistency with other item types, though that seems weird semantically.I would also suggest that we default to this behavior when the primary output type is
build
.The text was updated successfully, but these errors were encountered: