Problem: If the consuming project is also packed as nuget then the native libraries are incorrectly handled - there are copied to content and contentFiles folders therefor incorrectly consumed by the downstream projects.
Solution:
1) Changing Content to None item group where the native libraries are attached prevents adding them to the nuget package of the consuming project (None item group is not packed by default)
2) Adding FixZeroMqPackageConsumptions target prevents excluding ZeroMQ.targets from consumption in the projects that indirectly reference ZeroMQ nuget package. This will generate the following dependency in the nuspect:
Problem: If the consuming project is also packed as nuget then the native libraries are incorrectly handled - there are copied to
content
andcontentFiles
folders therefor incorrectly consumed by the downstream projects.Solution: 1) Changing
Content
toNone
item group where the native libraries are attached prevents adding them to the nuget package of the consuming project (None
item group is not packed by default) 2) AddingFixZeroMqPackageConsumptions
target prevents excludingZeroMQ.targets
from consumption in the projects that indirectly referenceZeroMQ
nuget package. This will generate the following dependency in the nuspect:instead of