How to Add References to Your Visual Studio ProjectSee Visual Studio: Tips and Tricks for similar articles.
Looking to improve your Visual Studio skills? Check out Webucator’s Visual Studio classes.
The steps below describe how to add references (.dll's or .exe's) to your Visual Studio project.
Note: This how-to does not cover how to use Service References or Web References.
- Within your project in Visual Studio, you must first open the Reference Manage dialog box. This can be accomplished two ways:
- From the toolbar, select Project - Add Reference
- In the Solution Explorer pane, Right click the project then select Add - Reference .
Within the Reference Manager, you select the appropriate category. Categories include:
- Framework - This includes all .Net libraries installed on the local machine
- Projects - This includes all class library projects in your Visual Studio Solution
- Com - This includes any Com components registered on the local machine.
- Browse - this opens a file explorer dialog box and allows you to locate the appropriate dll or exe.
- Using the Reference Manager, Choose the category and library within that category. In the example below, I have chosen the System.Web library in the Framework category.
- Once an item is selected, click the OK button and the reference will be added to your project. You can view the references in your project by expanding the references category within your project.
- You can also use the object explorer to browse the classes contained within the referenced library.
- How to Add References to Your Visual Studio Project (this article)
- How to Use Class Libraries in Visual Studio