Assembly References
To use types defined within class library assemblies, your project must contain a reference to the assembly.
This is a two step process:
- Copy the .dll assembly file to the
bin/Debug
directory of your project. - Add a reference to the .dll assembly file in Visual Studio.
Add a Reference To a Project
-
To add a reference to a project, right-click on the References node in Solution Explorer and choose Add Reference... in the context menu.
-
The Reference Manager dialog window will appear. Click the Browse.. button.
-
Navigate to the
bin/Debug
directory within your project and select the .dll assembly file. -
Click the OK button to add the reference.
You will now be able to see the reference as a node underneath References node in Solution Explorer.
Once the assembly has been added to the project, you can now access the types within it.