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

2009
15
Nov

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 vb.net in visual studio. There is a Project > Add Reference. But how do you remove the reference ?

  • First take Solution Explorer (Ctrl + Alt + L) View > Solution Explorer
  • Click the Show all Files
  • On the references tree and right click the reference and click Remove

Similar Posts
Related Searches




Comments

Post new comment

The content of this field is kept private and will not be shown publicly.