简体   繁体   English

IncrediBuild 配置构建顺序

[英]IncrediBuild configure build order

I have a solution with multiple projects in it.我有一个包含多个项目的解决方案。 From those numerous projects some depend on the Libs projects and the test projects depend on the code, obviously.显然,在这些众多项目中,一些项目依赖于 Libs 项目,而测试项目则依赖于代码。

How do I configure IncrediBuild to build Libs first, then build code and only then proceed to building tests?如何配置 IncrediBuild 以首先构建 Libs,然后构建代码,然后才继续构建测试?

I have:我有:

  • Microsoft Visual Studio Professional 2017 Version 15.9.40 Microsoft Visual Studio 专业版 2017 版本 15.9.40
  • IncrediBuild Version 9.5.0 (build 3385) IncrediBuild 版本 9.5.0(内部版本 3385)

I tested using build/rebuild solution to build both the library and the project code at the same time in Visual Studio.我使用build/rebuild solution在 Visual Studio 中同时构建库和项目代码进行了测试。 Libs don't need to be built manually one by one and it works fine after modifying the code. Libs不需要一一手动构建,修改代码后运行良好。

I opened Project -> Project Dependencies... went over every project and configured the code to depend on Libs and Tests to depend on the code projects and now they are built in the correct order and I don't have to go over every Lib and build/rebuid it every time I pull a minute change in it from the repository.我打开了Project -> Project Dependencies...检查了每个项目并将代码配置为依赖于 Libs 和 Tests 以依赖于代码项目,现在它们以正确的顺序构建,我不必在每个 Lib 上都使用 go并在每次我从存储库中提取一分钟更改时构建/重新构建它。

In the end the answer wasn't related to IncrediBuild at all, just Visual Studio functionality.最后,答案根本与 IncrediBuild 无关,只是与 Visual Studio 功能有关。

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

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