开发者

MSBuild fails to determine correct solution dependencies

I'm struggling to find a solution for this issue.

I have a solution (VS2008) that contains around 50 projects (C#).

The inter-project dependencies are added as project-reference (and not by referncing a DLL).

Also, the dependencies inside VS is set correctly in the solution settings dialog.

The problem is, when building the solution from MSBUILD (command line) on our CI server, msbuild will build the projects in what seems to be the order that they're laid out in the solution file, and not according to the dependencies.

I've found numerous references for this on the web, with no solution...

What can i do in order to build the solution correctly with msbuild from command开发者_如何转开发 line ?


This can be due an invalid build order inside your solution. You can change the build order without removing and re-adding the project. In Solution Explorer, right-click the solution name and select Project Build Order. You will be able to specify the build order of your projects so it should work in msbuild. This commonly happens if inside VS you have cached the DLL's during development. To verify if it works, remove all obj and bin folders before changing the build order and running the build.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜