在VS中构建和发布之间的区别? [英] The difference between build and publish in VS?

查看:232
本文介绍了在VS中构建和发布之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Visual Studio中的build和publish之间的区别,我有些困惑。

I am a little confused about the difference between build and publish in the visual studio.

构建程序和发布程序有什么区别?

What is the difference between building a program and publishing a program?

推荐答案

Build将源代码编译成(希望)可运行的应用程序。发布将可运行的应用程序放置在其他人可以运行的位置。您可能会因为以下事实而感到困惑:如果发布会认为需要,发布也会构建应用程序(例如,如果源代码发生了更改)。

Build compiles the source code into a (hopefully) runnable application. Publish takes that runnable application and puts it somewhere for other people to run it. Your confusion may come from the fact that Publish will also build the application if it thinks it needs to (e.g. if there are source code changes).

这篇关于在VS中构建和发布之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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