When adding a reference to VS 2008, the version is listed as v1.0.0.0 when it should be v1.1.0.0 - as far as I can see there is absolutely no reason why it is adding the wrong version.
Both projects are written from scratch, no other refs reference the assembly I'm trying to add and when I look at the file in windows, it has the correct version, yet somehow VS still picks up the wrong one (the target path is correct).
Does anyone know how to get VS to choose the version that I'm pointing it to, and not some older version it decides (for no reason at all) is the correct one?
I asked this question before, but there were no answers that solved the problem...
I AM DEFINITELY PICKING THE CORRECT FILE.
I was having the same issue and discovered that I had a reference path set (from the Reference Paths button on the References tab of the Project properties). This meant that as I added the assemblies, it was trying to find them in the reference path first, rather than the directory I selected them from.
I removed the reference path and was able to add the files correctly.
I solved this issue by going into the project I'm trying to reference, REMOVING ALL references (e.g. system, system.core, system.data etc) and adding them all back in. This solved the problem.
I can't explain why this is the solution, especially as this project didn't have any other references in other than what you get by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With