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

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

问题描述

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

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.

我是否需要它们FTP到生产Web服务器?

如果我做一个小的变化,我需要重新复制所有的网站?

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?

推荐答案

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

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:

从合并utilitity输出
  可以将所有标记和codeBeside
  code到一个单一的组装,但你
  最终仍要与.compiled
  这是必需的ASP.NET文件
  同一个页面请求相关联
  中所含的特定的类
  部件。然而,因为文件
  生成的名称是固定的,你不
  需要更新这些文件,除非你
  添加或删除页面。实际上,这
  也就是说,在大多数情况下,你可以
  只需更新单个组件
  更新您的网站。

  <一href=\"http://www.west-wind.com/$p$psentations/AspNetCompilation/AspNetCompilation.asp\">Source

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天全站免登陆