使用asp.net 5应用程序部署源代码有什么好处?

时间:2023-01-19 00:11:46

So, by default dnu publish packages your app with the source code of your application. You have the option of choosing not to do with and a command line argument (no-source).

因此,默认情况下,dnu发布会使用应用程序的源代码对您的应用进行打包。您可以选择不使用和命令行参数(无源)。

I was wondering why the default option is with source code and what is advantage of it ?

我想知道为什么默认选项是源代码,它有什么优势?

1 个解决方案

#1


0  

Publishing with sources is mostly a development scenario. Since dnu is a dev tool, we've decided to make publish with sources the default.

使用源发布主要是一种开发方案。由于dnu是一个开发工具,我们决定使用默认的源代码进行发布。

Advantage: you can edit the files in any text editor directly on the server. Next time the server starts it picks up the changes. If you use Azure Websites, you can edit the code files directly in the browser.

优点:您可以直接在服务器上的任何文本编辑器中编辑文件。下次服务器启动时,它会选择更改。如果使用Azure网站,则可以直接在浏览器中编辑代码文件。

Disadvantage: the server starts slower because it has to compile the sources.

缺点:服务器启动较慢,因为它必须编译源。

#1


0  

Publishing with sources is mostly a development scenario. Since dnu is a dev tool, we've decided to make publish with sources the default.

使用源发布主要是一种开发方案。由于dnu是一个开发工具,我们决定使用默认的源代码进行发布。

Advantage: you can edit the files in any text editor directly on the server. Next time the server starts it picks up the changes. If you use Azure Websites, you can edit the code files directly in the browser.

优点:您可以直接在服务器上的任何文本编辑器中编辑文件。下次服务器启动时,它会选择更改。如果使用Azure网站,则可以直接在浏览器中编辑代码文件。

Disadvantage: the server starts slower because it has to compile the sources.

缺点:服务器启动较慢,因为它必须编译源。