This documentation is archived and is not being maintained.

Reference Path, Common Properties, <Projectname> Property Pages Dialog Box

Visual Studio .NET 2003

Specifies the directory that will be searched when the project is loaded, to find the references that should be in your project. Adding a reference allows you to access the public elements from that assembly in code.

If you are working locally, you never have to edit this property because it is automatically updated when references are added to the project in Solution Explorer. However, if you are sharing the project in a multi-user scenario, task list errors may be generated if the location of the references changes from one computer to another. You can edit this property to fix these errors.

When the project system finds an assembly reference, it will try to resolve the reference by looking in the following locations, in the following order:

  1. Look for assemblies in the project directory. A directory is a project directory if files from that directory are displayed in the Solution Explorer, this does not include files that are displayed when Show All Files is in effect.
  2. Look for assemblies in directories specified with the Reference Path property.
  3. Look for assemblies in directories that are used to display files in the .NET tab of the Add Reference dialog box.
  4. Look for assemblies in your project's obj directory; any assemblies that were created as a result of you adding a COM reference to your project will be added there.

For information on how to access the Reference Path property page in the Common Properties folder, see Setting Visual Basic Project Properties. To access this property programmatically, see ReferencePath Property.

Specifies the default folder in which to search for the assemblies you can reference in your project. Click the ellipsis button to browse for a folder.
Add Folder
Adds the currently selected folder to the project.
Allows you to make a correction to an item you've already entered in the Reference Path list box. Select the item in the list that you want to change, and then edit it in the text box and click Update.
Reference Path
Lists the current folders that will be searched for the project.
Removes the currently selected folder from the project.
Up and Down arrows
Control the order of the folders in the Reference Path list. The list will be searched from top to bottom.

See Also

<Projectname> Property Pages Dialog Box