ASP.NET预编译的优点是什么? [英] What is the advantage of the ASP.NET precompilation?

查看:77
本文介绍了ASP.NET预编译的优点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Aspnet_compiler.exe代替通过Visual Studio进行常规发布有什么用?那资源(resx)文件呢?

How useful is it to use Aspnet_compiler.exe instead of conventional Publish via Visual Studio? And what about resource (resx) files?

推荐答案

与简单的xcopy相比,预编译为您提供了两个主要优点:

Precompilation, as opposed to simple xcopy gives you two main advantages:

  1. 文件系统不会在 .aspx 文件中包含所有代码,并且所有后面的代码都将编译为程序集.

  1. The filesystem will not have all the code in .aspx files and all the code behind is compiled into an assembly.

服务器启动后第一次访问页面时,ASP.NET编译没有延迟.

There is no ASP.NET compilation delay the first time you visit a page after the server starts up.

话虽这么说,但最近这些天我的预编译知识还是有些生疏,上一次我碰到它已经有一段时间了.

Having said that, my precompilation knowledge is a bit rusty these days, last time I touched it was a while back.

这篇关于ASP.NET预编译的优点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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