visual-studio Visual Studio 2008 中的 Build Solution 和 Batch Build 有什么区别?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34059/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the difference between Build Solution and Batch Build in Visual Studio 2008?
提问by Agnel Kurian
What is the difference between Build Solution and Batch Build in Visual Studio 2008?
Visual Studio 2008 中的 Build Solution 和 Batch Build 有什么区别?
回答by Will Dean
The key point which seems to be missed in both the existing answers is that batch build allows you to build multiple configurationsof each project (e.g. you can build debug andrelease configurations with a single operation).
两个现有答案中似乎都遗漏的关键点是批处理构建允许您构建每个项目的多个配置(例如,您可以使用单个操作构建调试和发布配置)。
With a normal build, you have to use the configuration manager to select just one configuration for each project.
对于普通构建,您必须使用配置管理器为每个项目选择一个配置。
回答by Abdalla Elmedani
in addition to what has been mentioned so far, batch build allows a combination of projects or configurations to be stored as a presetfor easier future access.
除了目前已经提到的内容之外,批处理构建还允许将项目或配置的组合存储为预设,以便于将来访问。
回答by roo
Batch build allows you to build any project that you select, and a Solution build only builds the projects that are part of the active solution.
批量构建允许您构建您选择的任何项目,而解决方案构建仅构建作为活动解决方案一部分的项目。
You can customise what projects are part of a solution build by going to menu Tools→ Configuration Manager.
您可以通过转到菜单Tools→ Configuration Manager自定义哪些项目是解决方案构建的一部分。
回答by Aidan Ryan
Another nice thing about batch build is that it lets you build a configuration different than the current one. It is handy for solutions that take a while to switch.
批处理构建的另一个好处是它允许您构建与当前配置不同的配置。对于需要一段时间才能切换的解决方案来说非常方便。
回答by Rehan Khwaja
Building the solution is the same as batch building all projects. Both methods respect the solution's dependencies.
构建解决方案与批量构建所有项目相同。这两种方法都尊重解决方案的依赖关系。

