Occasionally you will get assembly version conflicts when building / running .net projects. Here is a quick overview of how to fix
Using AsmSpy
Using AsmSpy is the easiest way to find assembly version conflicts.
Get it from: https://github.com/mikehadlow/AsmSpy
Run it on the build output directory. E.g.
AsmSpy c:\Projects\SomeProject\bin\Debug
It will display a list of references and the assemblies that use them.
For example
Reference: log4net
1.2.13.0 by ABCD
1.2.13.0 by XYZ
1.2.12.0 by EEE
Here you can see that EEE is expecting a lower version of log4net that the rest of the assemblies.
This makes it very easy to spot the errors.
Checking for errors manually
You can also manually check for errors by looking at the output window after a build. Using AsmSpy is a lot easier though
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment