是否需要将.compiled文件复制到生产服务器? [英] Do I need to copy the .compiled files to the production server?

查看:772
本文介绍了是否需要将.compiled文件复制到生产服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用部署项目部署我的ASP.net Web应用程序。
当我构建部署项目时,所有的.compiled文件都被重新创建。



我需要FTP到生产Web服务器吗? >
如果我做一个小的改变,我需要复制所有的网站?

解决方案

从我自己的研究,编译文件必须复制到生产服务器,但不需要每次复制



Rick Strahl 优秀博客:


合并功能的输出
可以将所有标记和CodeBeside
代码组合到单个程序集中,但是
仍然会以ASP.NET
所需的.compiled
文件结尾
程序集中包含
特定类的页面请求。但是,由于文件
生成的名称是固定的,您不需要
需要更新这些文件,除非
添加或删除页面。实际上,
意味着在大多数情况下,您可以
将单个程序集更新为
来更新您的Web。



I'm using a deploy project to deploy my ASP.net web application. When I build the deploy project, all the .compiled files are re-created.

Do I need to FTP them to the production web server?
If I do a small change do I need to copy all the web site again?

解决方案

From my own research, the .compiled files must be copied to the production server, but not needed to copied every time

from Rick Strahl excellent blog:

The output from the merge utilitity can combine all markup and CodeBeside code into a single assembly, but you will still end up with the .compiled files which are required for ASP.NET to associate the page requests with a specific class contained in the assembly. However, because the file names generated are fixed you don’t need to update these files unless you add or remove pages. In effect this means that in most situations you can simply update the single assembly to update your Web.
Source

这篇关于是否需要将.compiled文件复制到生产服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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