Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
751 views
in Technique[技术] by (71.8m points)

visual-studio - Visual Studio中的构建解决方案,重建解决方案和清洁解决方案之间的区别?(Difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?)

What is the difference between Build Solution, Rebuild Solution, and Clean Solution in Visual Studio?

(Visual Studio中的Build Solution,Rebuild Solution和Clean Solution有什么区别?)

When is the appropriate time to use each one of these?

(什么时候适当使用这些中的每一个?)

  ask by Fawa translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  • Build solution will perform an incremental build: if it doesn't think it needs to rebuild a project, it won't.

    (构建解决方案将执行增量构建:如果它认为不需要重建项目,则不会。)

    It may also use partially-built bits of the project if they haven't changed (I don't know how far it takes this)

    (如果它们没有改变,它也可以使用项目的部分构建位(我不知道它需要多长时间))

  • Rebuild solution will clean and then build the solution from scratch, ignoring anything it's done before.

    (重建解决方案将清理,然后从头开始构建解决方案,忽略之前完成的任何事情。)

    The difference between this and "Clean, followed by Build" is that Rebuild will clean-then-build each project, one at a time, rather than cleaning all and then building all.

    (这与“Clean,然后是Build”之间的区别在于Rebuild将清理然后构建每个项目,一次一个,而不是清理所有项目,然后构建所有项目。)

  • Clean solution will remove the build artifacts from the previous build.

    (Clean解决方案将从之前的版本中删除构建工件。)

    If there are any other files in the build target directories (bin and obj) they may not be removed, but actual build artifacts are.

    (如果构建目标目录(bin和obj)中有任何其他文件,则可能不会删除它们,但实际的构建工件是。)

    I've seen behaviour for this vary - sometimes deleting fairly thoroughly and sometimes not - but I'll give VS the benefit of the doubt for the moment :)

    (我已经看到这种行为有所不同 - 有时删除相当彻底,有时不会 - 但我会给VS带来怀疑的好处:))

(The links are to the devenv.exe command line switches, but they do the same as the menu items.)

((链接指向devenv.exe命令行开关,但它们与菜单项的作用相同。))


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...