Visual Studio Project dependencies

前端 未结 2 875
南方客
南方客 2021-01-20 23:27

I have a Visual Studio .Net Solution which has many projects/libraries.

When I work locally on my own PC there is no problem as I tend to recompile those libraries that

2条回答
  •  无人及你
    2021-01-20 23:43

    After other developers got new source codes from you, they should close Visual Studio and reopen the solution.

    Sometimes there are also troubles with dependencies in Visual Studio. First, try these menu commands:

    Build > Clean Solution
    Build > Rebuild Solution
    

    This will show you which dependencies are cyclic or not correct. Also, in Visual Studio project must not depend on another one which creates executable (at least for our pure C++ -written project this is true). I.e. "Utils" project which compiles into "Utils.dll" cannot depend on "MyApp" project, which exports some functions or symbols and compiles into both MyApp.exe and MyApp.lib (or some other kind of assembly). If you have such a dependency, you must correctly setup project build order and manually set MyApp.lib as in linker inputs.

提交回复
热议问题