MSBuild - can it work out project dependencies in a solution file? If so how?

前端 未结 7 863
北海茫月
北海茫月 2021-02-01 05:24

I have an msbuild project which builds a SLN file from visual studio which holds all the projects in (about 70+ project), and a lot of the projects are dependent on each other m

相关标签:
7条回答
  • 2021-02-01 06:24

    This is an old question but the issue was most likely that projects in the solution used direct references to dependent DLLs (Add Reference > select Browse tab > select dependent DLL) instead of using project references (Add Reference > select Projects tab > select dependent project). With direct references, Visual Studio can't figure out the dependency chain. You must tell it by right clicking on the solution node and select Properties. Pick Common Properties > Project Dependencies to set the required projects. Mr. Klaus is correct but I wanted to document how to fix this issue.

    0 讨论(0)
提交回复
热议问题