Question regarding conflicting package dependencies.

Jun 27, 2011 at 7:41 PM

Hi guys,

I have been using NuGet but I couldnt find any source of information regarding the following scenario:

- I have package A with dependencies over version 1.0 of package C, and
- I have package B with dependencies over version 1.1 of package C, and
- Versions 1.0 and 1.1 of package C can work side by side (not unusual).
- Both version 1.0 and 1.1 are strong named.

Now lets say that I need both A and B to play along in my project. Is NuGet able to handle the .dll versioning of each one of them? I am asking because in that case the build process would overwrite the dll file with the latest lucky one (if they are used in different assemblies).


Jun 27, 2011 at 8:13 PM

What would happen in this scenario is that you'd end up with C 1.1 in your app, and with A and B would use it. NuGet adds Binding Redirects to allow package A to use C 1.1 even though it was built against 1.0.