本文介绍了在Visual Studio中重建与清理+构建之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2008中仅进行 Rebuild 和进行 Clean + Build 之间有什么区别? Clean + Build 和进行 Clean + Rebuild 是否不同?

What is the difference between just a Rebuild and doing a Clean + Build in Visual Studio 2008? Is Clean + Build different then doing Clean + Rebuild?

推荐答案

重建=清理+构建(通常)

Rebuild = Clean + Build (usually)

值得注意的细节:

  1. 对于多项目解决方案,重建解决方案"对每个项目执行清理",然后执行构建"(可能并行执行).而干净解决方案"后跟构建解决方案",则首先清理所有项目(可能并行),然后清理所有项目(可能并行).当项目间的依赖关系发挥作用时,事件排序的这种差异会变得很明显.

  1. For a multi-project solution, "rebuild solution" does a "clean" followed by a "build" for each project (possibly in parallel). Whereas a "clean solution" followed by a "build solution" first cleans all projects (possibly in parallel) and then builds all projects (possibly in parallel). This difference in sequencing of events can become significant when inter-project dependencies come into play.

所有三个动作均对应于MSBuild目标.因此,项目可以覆盖重建"操作以执行完全不同的操作.

All three actions correspond to MSBuild targets. So a project can override the Rebuild action to do something completely different.

这篇关于在Visual Studio中重建与清理+构建之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 06:58