Skip to content

Hierarchy in packages nugets .targets #12478

Answered by TheXenocide
jmanriquecruz asked this question in Q&A
Discussion options

You must be logged in to vote

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 the build 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 the build package folder) you can add IncludeAssets="build" to your PackageReference 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…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jmanriquecruz
Comment options

You must be logged in to vote
2 replies
@TheXenocide
Comment options

@jmanriquecruz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants