Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Transitive nuget dependencies are not handled with netstandard libraries #3949
A netstandard library that depends on nuget libraries will not be correctly resolved unless the XM or XI library in question also resolves those libraries independently.
Steps to Reproduce
The XI and XM library to resolve the nuget required by the netstd library.
The "transitive" dependency of a dependency is not resolved correctly.
Example Project (If Possible)
msbuild does not resolve it so it's never given to
referenced this issue
Jun 18, 2018
So after some investigation (for a developer community issue), it seems this is kind of the expected behavior: dependencies of .netstandard projects don't flow to the referencing ("old-style") project. This behavior is explained in dotnet/sdk#901.
The fix seems to be to migrate your main project to a PackageReference project, which is fairly simple: https://stackoverflow.com/a/49266856/183422.
For extensions, this also needs an additional fix (the fix for #4237), which should be released to stable together with our iOS 12 supported release fairly soon.
Leaving open so that we can write tests (can't do it quite yet, since we need to build/test with msbuild, which requires 2018-06 to get a version that supports our needs).