This project has moved. For the latest updates, please go here.

What if a project references two versions of a .dll

Topics: Developer Forum
Dec 14, 2011 at 3:15 PM

My application is referencing two different versions of a .dll. Sandcastle will not allow two references of a file with the same name. I have tried using the assembly redirect plug-in but that will not work either. Is there anything else I can do?

Dec 14, 2011 at 7:11 PM

If you're trying to use Visual Studio projects as documentation sources, that may not work.  In that case, add the assemblies and XML comments files to document directly as documentation sources (leave out the reference assemblies that you don't want documented).  Use the binding redirection plug-in to point the older version at the newer version of the reference assembly.  If MRefBuilder complains that it can't find the reference assembly, add the latest version as a reference to the project's References node.  That should work.