I have a project where I would want to use some specific version of a dll.
The GAC contains couple of versions of that dll (new & old), I would want to use the old when running the programm.
Issue is that the newest dll is always picked-up from the GAC.
Would you know if there is a way to either:
- Force the usage the dll that is in the run folder (the one I'm referencing in my solution, working fine in debug).
- Force the usage of the old version of the dll from the GAC.
Thank you!
When you have added the library to your project and you collapse the 'References'-node of the project tree, you'll see the added library. When you select it and click the 'Properties'-node of the context menu, you can specify if a specific version of the library should be used and which version to use. Simply set 'Specific Version' to true and specify the Version number. Then you don't have to cope with the question where the version you want is loaded from.
Have you try to "Redirecting Assembly Versions" in your app.config? http://msdn.microsoft.com/en-us/library/7wd6ex19(v=vs.110).aspx
Took me forever to figure this out but what I did was on the "Reference Paths" I added the exact path to the old DLL's then made that the first place to check. It then pulled the old versions which is what I needed for Crystal Reports. We have multiple applications that use 13.0.2 but I develop in Visual Studio 2017. I was able to install the latest Crystal Reports add-in for VB, 13.0.23, but reference the old 13.0.2 using this method.