Visual Studio 中重建和清理 + 构建的区别 [英] Difference between Rebuild and Clean + Build in Visual Studio

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

问题描述

在 Visual Studio 2008 中,仅 重建清理 + 构建 有什么区别?Clean + BuildClean + 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(通常)

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 中重建和清理 + 构建的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆