Making Visual Studio 2010 References Stick

Visual Studio 2010 has an annoying tendency to somehow lose references to DLLs — the reference worked for ages and out of the blue you receive a warning: The referenced component ‘Xyz’ could not be found.

If you have the source for the DLL there’s an easy workaround:

  1. Reference the project that creates the DLL
  2. Reference the DLL from the Add Reference window’s Projects tab

Additional goodies: all the DLL’s TODOs show up in your Task List, no more stale references and the Go To Definition command showing the code and not just the interface.

Advertisements
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s