Prevent old dll version loading
I'm having a bit of trouble with a simple exe. On the first machine I have .net 3.0, 2.0 (&1.1) and visual studio 2005. W开发者_开发知识库hen I build the application it correctly loads the 3.0 version of mscrt.dll. I then built a deployment project containing the required libraries and installed it on a second machine which only has .net 2.0. When I run the application it is apparent that it is using the wrong version. If I check which dlls are loaded it shows both versions.
How do I prevent it from loading the old dll? I don't have admin access to the machine so can't do anything about the config pc the machine.
Take a look at assembly version redirection.
An application configuration file, machine configuration file, or a publisher policy file can redirect one version of an assembly to another.
精彩评论