Skip to content

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:

  1. Copy the .dll assembly file to the bin/Debug directory of your project.
  2. Add a reference to the .dll assembly file in Visual Studio.

Add a Reference To a Project

  1. To add a reference to a project, right-click on the References node in Solution Explorer and choose Add Reference... in the context menu.

    Add Reference

  2. The Reference Manager dialog window will appear. Click the Browse.. button.

    Reference Manager

  3. Navigate to the bin/Debug directory within your project and select the .dll assembly file.

    Locate the Assembly File

  4. Click the OK button to add the reference.

    Confirm the Addition of the Reference

    You will now be able to see the reference as a node underneath References node in Solution Explorer.

    Reference List

    Once the assembly has been added to the project, you can now access the types within it.