Hierarchy in packages nugets .targets #12478
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
By default, props and targets from transitive packages are not automatically included in downstream consumers. If you want a dependency of a dependency to load props/targets you can add copies of them to the As a side note, there may be some naming confusion with you [Redacted].SDK package now that custom project SDKs are becoming more common (e.g. |
Beta Was this translation helpful? Give feedback.
-
Hello @TheXenocide, thanks for your help, although the last thing you told me was not very clear, I tell you that what I want is for the third-party library that I am using to be a separate nuget and the sdk for the implementation of those dlls to be another nuget that's why I have the dependency, because of the requirement. |
Beta Was this translation helpful? Give feedback.
By default, props and targets from transitive packages are not automatically included in downstream consumers. If you want a dependency of a dependency to load props/targets you can add copies of them to the
buildTransitive
package folder (in addition to thebuild
folder) which is automatically included. Alternatively (and this is more for conditions where the transitive dependency isn't in your control and only includes props/targets under thebuild
package folder) you can addIncludeAssets="build"
to yourPackageReference
to have its generated nuspec indicate to consuming libraries that they should also include build props/targets for its declared dependency.As a side note, there may b…