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

前端之家收集整理的这篇文章主要介绍了asp.net – 我需要将.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

猜你在找的asp.Net相关文章