I\'m getting the following error when I try and compile a utility, which uses files that have been deployed to our client.
Assembly \'*A* version 2.0.
If I understand you correctly, you have legacy assembly A that references specific version of assembly B. At the same time you are building utility C which uses both assemblies - A and B.
You should be able to use two different versions of the same assembly B by following steps. Not a compile time redirection, but it should work:
A to your project C, set SpecificVersion = true;B version 1.1.39.0 to your project C, set SpecificVersion = true;1.1.39.0 of assembly B to project output path /bin/B_1.1.39.0/B.dll;Add following binding redirects and specify custom location for assembly B with version 1.1.39.0 using codeBase element;
Now your legacy assembly A should be happy as you have version 1.1.32.0 of assembly B in your output folder. Your utility C should be happy as well as it using specific version 1.1.39.0 of assembly B and you have provided custom location where to look for it.
Hope it helps!