加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 我需要将.compiled文件复制到生产服务器?

发布时间:2020-12-15 18:59:47 所属栏目:asp.Net 来源:网络整理
导读:我正在使用部署项目部署我的ASP.net Web应用程序. 在构建部署项目时,将重新创建所有.compiled文件. 我需要FTP到生产Web服务器吗? 如果我做一个小的改变,我需要再次复制所有的网站? 解决方法 从我自己的研究中,.compiled文件必须复制到生产服务器,但不需要
我正在使用部署项目部署我的ASP.net Web应用程序.
在构建部署项目时,将重新创建所有.compiled文件.

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

解决方法

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

从Rick Strahl优秀博客:

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. 07001

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读