开发者

msbuild across different solutions

开发者 https://www.devze.com 2023-01-12 11:03 出处:网络
We\'ve started to separat开发者_运维知识库e 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 bui

We've started to separat开发者_运维知识库e 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消