Is it possible to ignore assembly version mismatch of compilation assembly

I ran into the error

Assembly "A" uses "B, version 2.0.0.0", which is a higher version than referenced assembly "B, 1.0.0.0"

I know what this error means and that the usual solution would be to update the referenced assembly so that the versions match. I am wondering if it is possible to force the use of the old version (and if the application does not work at runtime, if there are any differences in the parts of the assembly used).

As per the answer to this question, redirect bindings only work when at runtime. Is there a similar mechanism for compile-time redirection?

(I know this is a terrible idea, the question is mostly academic)

+3


source to share





All Articles