-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project A referencing package B via AssetTargetFallback, doesn't use that same AssetTargetFallback to pull B's dependency package C #5957
Comments
@AArnott are you still facing this issue with latest VS preview build? |
@mishra14 Yes, it still repros with the latest int.preview build:
|
retitled: Project A referencing package B via AssetTargetFallback, doesn't use that same AssetTargetFallback to pull B's dependency package C @AArnott likely had a scenario where A called an API in B and B called an API in C so he ran into a runtime issue. |
@nkolev92 - please address...this is likely more important with netcoreapp3 increased usage. |
workaround is to manually reference C as a top level package reference, I believe. |
Bump? |
This is a major adoption blocker for .NET and causing unnecessary friction in the ecosystem. Would be nice to prioritize this please. @clairernovotny do you know anyone on the NuGet team who could perhaps champion this? ;) |
Design out at #11460. Once that's been reviewed and approved, NuGet/NuGet.Client#4372 is merge quality already. |
This should land in 6.2/6.0.200/17.2. Not inserted yet, but should be in preview 1 of 17.2 |
@nkolev92 edit:
When I added netcoreapp2.0 as a target for my console application, it failed at runtime because it couldn't find an assembly that was a transitive dependency of one of my package references. When I add the package reference explicitly, it works fine. I inspected the VSMefSample.deps.json file and found that there is no mention of the transitive dependency until I add it as a direct dependency.
It would seem then, that
dotnet restore
(or equivalent in VS) is not fully restoring transitive dependencies when it tries to see through net45 packages to adapt them to work on netcoreapp2.0.Repro
Expected
Actual
Version info
The text was updated successfully, but these errors were encountered: