How to remove a reference to a DLL or COM Component Object file in VB.Net

A reference to 'XXXXX.dll' could not be added. A reference to the component 'XXXXX.dll' already exists in the project.

This occurs when you add 2 versions of the same dll into your project. Before adding a reference to a new DLL you have to remove the reference to the existing library. This is not obvious on in visual studio. There is a Project > Add Reference . But how do you remove the reference ?

Steps to Remove the referenced DLLs

  1. First take Solution Explorer (Ctrl + Alt + L) View > Solution Explorer
  2. Click the Show all Files
  3. On the references tree and right click the reference and click Remove
15 Nov, 2009
Comments (0)
You may also like
On Facebook
Email Newsletter