-
Notifications
You must be signed in to change notification settings - Fork 525
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
convert-from-nuget indirect refs should not override direct deps #163
Comments
what was the warning message? convert-from-nuget should take latest version from all defined in |
No, 2 had exactly But an indirect dep (Moq from AutoFixture), specifies This resulted in the deps file getting UPDATE: Can review the messages but pretty confident it is wrong (the tests fail :) ) |
@theimowski One thing I didnt mention is that it #158 is also useful in the context of converting hyprlinkr |
what's the status of this? Is the |
I don't know - for me there is a clear algorithmically derivable solution, and I'd prefer that. But OTOH I'll be honest and say that I haven't used The bottom line is that the assembly redirects in the project want it to be exactly that version and an indirect dependency I have no control over caused it to agressively override 2 identical clear instructions) But I'm not familiar with the resolution code - if this conflicts with a lot of what it does this might be very messy. And there are definitely bigger fish to fry - as #154 shows, there's plenty scope for more work on the coding rules. Fixing this is not exactly closing the final issue in resolution 4eva :) I'd moan a lot more if other issues are closed than I would for this one, but unless someone can explain why I'm wrong I do consider it technically a bug. |
convert-from-nuget
got the conversion of hyprlinkr almost perfect:There were 2 unit tests using
Moq
, both specifying4.2.1312.1622
.The converted file instead had latest (
4.2.1409.1722
)This is more than likely due to, as the
lock
file shows,AutoFixture
has an indirect reference toMoq
too:The tests have
assemblyRedirect
elements pointing at the specific Moq version and test running fails when the when the version is inferred incorrectly.One final thing is that the global
packages.config
didnt declareNuGet.CommandLine
, so deps needs:Final deps file with 2 adjustments above:
The text was updated successfully, but these errors were encountered: