inside
inside

Reputation: 3177

When adding new project to VS solution it messes up solution dependencies

We have huge project solution with about 20 projects and 6 different build configurations. Each build configuration has own dependencies, when adding new project to the solution, it changes other projects dependencies and fails to compile. Any ideas on how to add new project without causing any affect to other projects and it's dependencies?

Thanks.

Upvotes: 2

Views: 462

Answers (1)

inside
inside

Reputation: 3177

Here are the steps of solving the problem:

  1. Remove added project from the solution
  2. Revert solution file to its original state
  3. Open recently added project .csproj file in the notepad++ and open .csproj file of any project that's been already in solution.
  4. Compare all the properties between two files and make sure they have the same Build Configurations, Configurations,
    Platform, Platform target. (Just take all this info from your old project)
  5. Save your new project's .csproj file and right click on your
    solution in visual studio and add existing project which will be
    the project you want to add.

Result: Visual studio doesn't touches solution dependencies.

Upvotes: 2

Related Questions