I have a Visual Studio 2008 project that has a reference to a dll. I removed the reference to version 1 and added a new reference to version 2. The project builds successfully, however when I analyze the project dll after it has been built in Reflector I am seeing that it is holding onto two references to the same dll - version 1 and version 2 are both referenced.
+5
A:
If you look at your project file in notepad, can you see both references in there? You may have to scan through a bit of xml to find them... If so, you could manually remove the old one and resave the project in notepad.
John JJ Curtis
2009-06-05 17:06:56
+1 I have often had to do this in every Visual Studio since 6.0. Sigh.
MattK
2009-06-05 17:11:26
Me too. Thank goodness for notepad!
John JJ Curtis
2009-06-05 17:15:28
Alternatively, you can Unload the project from Visual Studio. Then, and "Edit Project" command becomes available. You can edit the project file as XML, complete with some Intellisense.
John Saunders
2009-06-05 17:23:52
Thanks for the suggestions, however after looking at the csproj file i cannot find a reference to the old dll
Clint
2009-06-08 15:59:24