Generate Path Property for NuGet Package Dependencies? #11508
Unanswered
LRufenacht
asked this question in
Q&A
Replies: 2 comments
-
Why not suggest package consumers to reference your package dependence directly ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Because then it's up to the user to retrieve two NuGet packages and also set the appropriate GeneratePathProperty on the second NuGet. The idea is to create one "seamless" experience for developers. This approach isn't intuitive but it seems to be about the only option. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I hope this post is in the right place.
Is it possible to get the Generated Path Property for a NuGet Package dependency?
I've created a NuGet package that depends on a third-party package that I want copied into my Project's directory .
The third-party NuGet package has not enabled copying to the output directory using the PackageReference style (works correctly using packages.config) and so the content ends up in the global packages directory.
I've added a .targets file to my NuGet package distribution in /build that copies the contents from the global location using the $(PkgNuGetName) variable, but this variable is empty because the GeneratePathProperty for this dependency is disabled I assume.
Please let me know if anything isn't clear or you need additional information!
Thanks for your time,
Levie
Beta Was this translation helpful? Give feedback.
All reactions