简体   繁体   中英

Add project reference recursively in Visual Studio

I have a Visual Studio solution with 100+ C# and 2 C++ projects. Now I want to create a new project in a new solution and reference one of the existing projects (ProjectA).

My question is: how do I add all the existing projects which are referenced by ProjectA recursively and

  • automatically (it's too painful to add them one by one)
  • without using NuGet to pack those projects

How about:

  1. Copy existing ProjectA solution and name it ProjectB
  2. Add a reference to the new solution to your new project.
  3. Remove all other unnecessary projects in the solution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM