Use Visual Studio ide to add an assembly to a project

Source: Internet
Author: User

If you use Visual Studio ide to build your project, you must add the Assembly you want to reference to your project. to do this, open Solution Explorer, right-click the project you want to add the Assembly reference, and select the Add reference menu item. The add reference dialog box is displayed, as shown in:

To allow your project to reference an assembly, select the assembly to be referenced from the list. if the Assembly you want to reference is not in this list, click the Browse tab to browse the assembly to be referenced (including the manifest file) and add the Assembly reference. the com tab in the Add reference dialog box allows you to access the unmanaged COM server in the hosted source code. This is achieved through the managed proxy class, which is automatically generated by Visual Studio. the projects Tab allows the current project to reference the Assembly created by another project in its solution. the recent Tab allows you to select the Assembly you recently added to other projects.

To make your assembly appear in the. NET tab list, add the following sub-keys to the registry:

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \. netframework \ assemblyfolders \Mylibname

Mylibname is the only name you have created -- this name is not displayed in Visual Studio. after creating this subkey, change its default string value to point to a directory path containing your assembly (for example, "C: \ Program Files \ mylibpath ").

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.