Error while removing project dependency in VS2010

前端 未结 8 1722
甜味超标
甜味超标 2020-12-30 19:16

I have a large solution with number of projects. Some the projects depend on others (never a circular dependency though).

When I tried to remove a dependency of a p

相关标签:
8条回答
  • 2020-12-30 19:30

    For Visual Studio 2013: On C++ projects (hope the same for others too)

    1. From the Solution Explorer, select the project and right click to select the properties
    2. In the properties window, on left pane, select Common properties => References
    3. Right side of the window, you have the option to Add or Remove the other dependency items.
    4. Then select OK, to save
    0 讨论(0)
  • 2020-12-30 19:46

    I sometimes get this problem when I try to manually edit projects/solutions generated by our CMake system. I solve it manually:

    • Open the dependent .vcproj file in your favorite text editor.
    • Find <ProjectReference> tag corresponding to the dependency you want to remove (the include attribute of the tag will contain the name of the dependency project).
    • Remove the whole <ProjectReference> element (i.e. starting with <ProjectReference> and ending with </ProjectReference> inclusive). Save the file.
    • Reload the solution.
    0 讨论(0)
提交回复
热议问题