msbuild across different solutions

浪子不回头ぞ 提交于 2021-02-08 04:37:32

问题


We've started to separate out our single VS solution into multiple solutions for better maintenance. I am wondering if there is any best practice out there for msbuild script that build across multiple solution that may depend on the same project dll. For example:

solution 1 contains [proj1 and proj2] solution 2 contains [proj3 which needs a reference to proj2]

Logically, solution2 cannot be build until solution1 is built. Also, the reference made to proj2 from solution2 should not be of the /Debug/proj2.dll, rather it should be in some common build folder.

Is there any good article out there on how to configure MSBuild to do this?


回答1:


Here is a two part MSDN article titled "Best Practices For Creating Reliable Builds"

Part 1 http://msdn.microsoft.com/en-us/magazine/dd419659.aspx

Part 2 http://msdn.microsoft.com/en-us/magazine/dd483291.aspx

The last section of the second part talks about very large solutions. It's a bit complicated, but there is a code sample to help out.



来源:https://stackoverflow.com/questions/3522384/msbuild-across-different-solutions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!