1.Solution的Build、Rebuild和Clean

  大家好,我是原文,这篇随笔是对原文的翻译以及自己的体会。

  做程序员没追求的话是永远找不到女朋友的,当然有追求也找不到,这个先不提,好在有追求的时候我是充实而且开心的。现在我们的问题是,每天调试项目,在Visual Studio中都会点到的三个菜单项Build Solution、Rebuild Solution和Clean Solution,他们到底是个啥。我怀着无上的追求精神(哈哈哈哈哈)找到了一篇切题的文章,感谢阿三的分享。

  Build Solution也就是生成解决方案,做的是增量构建,称之为incremental build,换句话就是IDE只编译那些有改动的源文件,没改动的不屌你。由于一个解决方案中各个部分是相互关联的,我们改过一个地方后,另一个地方可能也需要重新编译(多Project的Solution)。这个我一般也不长用。

  Rebuild Solution重新生成解决方案。它首先会删掉当前所有的已编译文件,各种exe、dll等,然后不管你的代码是否有过修改,从零开始(from scratch)重新编译。

  Clean Solution,如果你愿意的话它可以翻译成清洁溶液,不过我们还是认为它是清理解决方案。这一项会删掉所有工程bin和obj目录下已编译文件,exe和dll等。

  所以三哥就说了,聪明的你想必已经总结出他们的关系啦:C + B = R。我们这里不是赋值运算,那么有追求的你又会问啦,C + B和R完全等价吗,区别呢?

  细心的三哥为我们娓娓道来:如果一个Solution下有多个(下图假设有两个)Projects,Rebuild操作,是依次Clean每一个Project然后再Build这个Project;Clean + Build操作会一次性Clean所有Projects,然后一次性Build所有Projects。虽然觉得没必要分得这么细,但这也不是坏事:)

  (盗图)

  这之后我去MSDN上找相关的问题,妈蛋一搜弹出一堆,所以说,要啥自行车。这之中还是爆栈比较靠谱嘛,问题下又发现了同一个三哥的身影,还真是个热心的人呢。

  最后发现自己又生产了一篇信息垃圾,争取早日写出自己的有价值的随笔。

时间: 2024-08-10 02:57:58

1.Solution的Build、Rebuild和Clean的相关文章

VS中 build,rebuild,clean

一般来说Rebuild=99%*(Clean+Build),效果在非常小的可能性下会不同,一般可以忽略. Rebuild是对Solution下的所有项目,逐个进行 Clean+Build.不论文件更改与否 Clean+Build是对选中的项目(如果选中Solution的话,全部Clean之后,再全部Build)先执行Clean再执行Build. 一般不需要执行Clean. Build只是针对有更改过的文件进行编译.而Rebuild会编译所有. 推荐用 Clean+Build 或者Build.bu

eclipse中的maven build、maven clean、maven install和maven test的区别

eclipse中的maven build.maven clean.maven install和maven test的区别 https://www.cnblogs.com/Marydon20170307/p/9928241.html 原文地址:https://www.cnblogs.com/yuyu666/p/10049853.html

build,rebuild ..deploy... process

Process the cube.  This will: Build - compile Deploy - send metadata updates to Analysis Services database Process - bring over data to dimensions and fact table/measure group If you're the database developer, you might need to hand off the final dat

Mission Planner编译

软件下载: 本文使用VS2013进行编译和修改Mission Planner,其他版本没有尝试过.首先下载Mission Planner源码. https://github.com/diydrones/MissionPlanner 同时声明本文是翻译APM官方论坛的文章,和尝试的结果.还有因为是开源的项目本身比较活跃,版本很多,这里不保证可以一定编译成功.英文原文地址: http://dev.ardupilot.com/wiki/buildin-mission-planner/ 在编译之前请务必

Visual Studio中的Build和Rebuild区别

Visual Studio中的Build和Rebuild区别 一般来说Rebuild=99%*(Clean+Build),效果在非常小的可能性下会不同,一般可以忽略.Rebuild是对Solution下的所有项目,逐个进行 Clean+Build.不论文件更改与否Clean+Build是对选中的项目(如果选中Solution的话,全部Clean之后,再全部Build)先执行Clean再执行Build.一般不需要执行Clean.Build只是针对有更改过的文件进行编译.而Rebuild会编译所有.

Keep the Build Clean

Keep the Build Clean Johannes Brodwall HAVE YOU EVER LOOKED AT a list of compiler warnings the length of an essay on bad coding and thought to yourself, "You know, I really should do something about that-but I don't have time just now"? On the o

Tomcat默认ROOT.build.xml之ant学习

Tomcat的编译打包采用了传统的ant编译,相对于c里面的makefile文件,ant采用build.xml文件来制定编译规则. 先来尝试看看简单的ROOT工程里的编译规则. <?xml version="1.0" encoding="UTF-8"?> <!--   Licensed to the Apache Software Foundation (ASF) under one or more   contributor license ag

Introduction to the Build Lifecycle

Introduction to the Build Lifecycle Table Of Contents Build Lifecycle Basics Setting Up Your Project to Use the Build Lifecycle Packaging Plugins Lifecycle Reference Built-in Lifecycle Bindings Build Lifecycle Basics Maven 2.0 is based around the cen

Build OpenCV text(OCR) module on windows

Background. AOI software needs to use the OCR feature to recognize the texts on the chips. Because our vision software is based on OpenCV, so the first choice is text module in opencv_contrib. Procedures. 1. OCR module is not in standard OpenCV packa