我正在使用部署项目部署我的ASP.net Web应用程序.
在构建部署项目时,将重新创建所有.compiled文件.
在构建部署项目时,将重新创建所有.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