简体   繁体   English

构建输出与项目构建顺序不匹配

[英]Build output doesn't match the project build order

I am using Visual Studio 2008 in order to build a soultion with 19 projects. 我正在使用Visual Studio 2008来构建包含19个项目的灵魂。

If I go to the Project Dependencies window and then to Build Order tab I see that project XXX should be the last project to be built. 如果我转到“项目依赖项”窗口,然后转到“构建顺序”选项卡,我会看到项目XXX应该是要构建的最后一个项目。 However, when I build the solution, project XXX is built somewhere in the middle, and it is definitely not the last project to be built. 但是,当我构建解决方案时,项目XXX构建在中间的某个位置,并且绝对不是最后一个要构建的项目。

How is this thing possible? 这怎么可能?

The Build order tab should show you one possible topological sort of the projects based on dependencies. “构建顺序”选项卡应根据依赖关系为您显示项目的一种可能的拓扑类型。 If you want a project to always be the last one built, you should make it depend on all the other projects. 如果您希望一个项目始终是最后一个构建的项目,则应使其依赖于所有其他项目。

Maybe you selected another one which depends on your project XXX project before building solution. 在构建解决方案之前,也许您选择了另一个取决于您的项目XXX项目的项目。 Also, concurrent projects building at a time may cause your confusion. 此外,同时进行的并发项目可能会引起您的困惑。 Let open "Option\\Projects and Solutions\\Build and Run" and make sure maximum number of parallel projects builds is 1. 打开“ Option \\ Projects and Solutions \\ Build and Run”,并确保并行项目构建的最大数量为1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM