Add and Reference Other Projects
 
 
 

Adding and referencing projects allows you to share code across multiple projects. You can create centralized libraries of commonly used methods, functions and classes, and then reference the library when needed. Projects can be referenced in the following ways:

When you add a project to a solution, a new node for the project is displayed in the Solution Explorer. This node is titled the same as the project that was referenced. After a project is added, it must be referenced to the project using the Add Reference dialog box.

If the project has been compiled into an assembly DLL file, you can reference the file to a project using the Add Reference dialog box. After a project or assembly DLL file is referenced to a project, you use the Imports or using declaration with the namespace or project name to utilize any of the exposed objects (classes or forms) in your project.

Procedures

To reference another project