I'm referencing a dll (ICSharpCode.SharpZipLib.dll) for my visual studio project from my bin folder, the version I want to use is 0.5.0.0. However, when I run the project, the dll gets replaced with a more recent 0.85.4.369 which is imcompatible with some of the libraries I've got.
How do I stop Visual Studio from doing an auto-update on the reference?
Upvotes: 1
Views: 5618
Reputation: 2584
This is valid only for web sites - look in the bin folder of your project and check if there is a file there called ICSharpCode.SharpZipLib.dll.refresh. Delete it and VS will not look for new versions of the assembly when you build the site.
Upvotes: 3
Reputation: 161773
There is no auto-update. The later version must be in the GAC.
Upvotes: 0