aspnet_compiler

网友投稿 353 2022-11-04


aspnet_compiler

aspnet_compiler 是一个把整个网站进行编译的工具。

C:WINNTMicrosoft.NETFramework2 .0.40607 >aspnet_compiler -?Utility to precompile an ASP.NET applicationCopyright ( c ) Microsoft Corporation 2001 - 2003 . All rights reserved.Usage:aspnet_compiler [ -? ] [ -m metabasePath | -v virtualPath [-p physicalDir ] ] [ targetDir ] -? Prints this help text.-m The full IIS metabase path of the application. This switch cannot be combined with the -v or -p switches.-v The virtual path of the application to be compiled (e.g. " /MyApp " ). If -p is specified , the physical path is used to locate the application. Otherwise , the IIS metabase is used , and the application is assumed to be in the default site (under " /LM/W3SVC/1/Root " ). This switch cannot be combined with the -m switch.-p The physical path of the application to be compiled. If -p is missing , the IIS metabase is used to locate the app.-nologo Suppress compiler copyright message.targetDir The physical path to which the application is compiled. If not specified , the application is precompiled in-place.Examples:The following two commands are equivalent , and rely on the IIS metabase. Thecompiled application is deployed to c:MyTarget: aspnet_compiler -m /LM/W3SVC/ 1 /Root/MyApp c:MyTarget aspnet_compiler -v /MyApp c:MyTargetThe following command compiles the application /MyApp in-place. The effect isthat no more compilations will be needed when HTTP requests are sent to it: aspnet_compiler -v /MyAppThe following command does *not* rely on the IIS metabase , as it explicitlyspecifies the physical source directory of the application: aspnet_compiler -v /MyApp -p c:myapp c:MyTarget

运行C:/WINNT/Microsoft.NET/Framework/v2.0.40607>aspnet_compiler -v /djlp1 -p H:/Websites/DljPortal c:/dljp1 之后,

在 c:/dljp1 生成了一个目录,里面有 bin 目录,有data目录,还有其他文件都复制了过去了。

bin目录下多了几个dll文件:__code7jyhe1in.dll __DljPortalltzbmqxr.dll __resources9y3reyon.dll default.aspx.cdcab7d2.compiled global.asax.compiled global.asax7xyenj3t.dll ...

而以前的 default.aspx 现在的内容变成:This is a marker file generated by the precompilation tool, and should not be deleted!

不过这个 c:/dljp1 是不会自动变成 ​​里的信息没有变。 不过这次 codeSubDirectories/ 这个设置没有提示错误了。。

最难得的是global.asax已经失踪了,这个文件将在bin目录下用global.asax.compiled来指定。内容是:

< preserve resultType = " 3 " virtualPath = " /djlp1/global.asax " hash = " fffffffac7751c8c " filehash = " ffffd6a40be55434 " assembly = " global.asaxx5e9jbd0 " type = " ASP.Global_asax " > < filedeps > < filedep name = " /djlp1/global.asax " />


版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:TCP
下一篇:mybatis 遍历foreach中or拼接的操作
相关文章

 发表评论

暂时没有评论,来抢沙发吧~