Add a project to the solution in Visual Studio

Source: Internet
Author: User

You can add new or existing projects to the solution.

Add a new project to the solution
  1. In Solution Explorer, select the solution for which you want to add a project. (If the solution is not displayed in Solution Explorer, select options from the Tools menu and click Project and solution ", click "always show solution ".)

  2. Select "add" from the "file" menu, and then select "new project ".

  3. Select the project type and template, and click OK ".

You can add an existing project to the solution and edit the project to meet the requirements of the current solution. However, this changes the project settings in the original location of the project.

Add existing project to Solution
  1. In Solution Explorer, select the solution for which you want to add a project.

  2. Select "add" from the "file" menu, and then select "existing project ".

  3. Select the project to be added to the solution, and click open ".

Add a project reference in Visual Studio 

After adding a project to a solution, you can reference the project from your web project.

Reference another project
  1. In Solution Explorer, select the web project to which you want to add a project reference.

  2. On the "website" menu (for website projects) or "project" menu (for Web application projects), select "add reference ". In addition, you can right-click your web project in Solution Explorer and then click Add reference ".

    The "add reference" dialog box is displayed.

  3. Click the projects tab.

  4. From the list of available projects, select the project to be referenced and click OK ".

    The following content will be added to the bin folder of the web project:

    • A copy of the Assembly created from the added project.

    • Copies of dependent assembly, XML file, license file, and resource file.

    • The program database (. PDB) file that contains the debugging information and project status information of the debugging version of the added assembly. If the file is in the original location, the file will be copied regardless of the generation settings.

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.