简体   繁体   中英

Visual Studio 2017: Create project template > use it > all references broken?

I have three projects(main project, integration test project, unit test project) that are located in a solution A. I want to use them in solution B now. So I read that creating a project template is the cleanest way to do it. So I created project templates for each project and added new projects based on these template in solution B.

The main project works flawlessly, while the references on the unit test and integration test projects are all broken (yellow triangle).

How can I repair them? They have references to the main project and nuget packages.

For nuget packages install required packages once again in solution B by selecting respective projects (From nuget package manager). For other references remove all references with yellow triangle. Add them once again one by one.

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