asp.net 4 precompile utility and classic asp files

半世苍凉 提交于 2019-12-11 07:32:06

问题


We have a huge site that still has over 800 classic asp pages. While working on the upgrade of the site to 4.0 I cam across an issue where asp.net precompile utility aspnet_compiler throws millions of errors in those classic asp pages, especially with the include directives. (mainly constants and functions are defined in the global files not visible in the included file itself)

Is there a way to tell precompile utility to ignore classic asp and inc files?

Is there any other way other then converting all asp pages to make it precompile?


回答1:


You could delete all of the .asp files and see if anyone notices.

Just kidding.

Instead, how about making a copy of the site with no .asp files, and precompile that. Or temporarily delete the .asp files, precompile, then move them back.

But, BTW, welcome to the joy of using obsolete technologies. It just keeps getting worse from here on; it won't get any better.



来源:https://stackoverflow.com/questions/5021503/asp-net-4-precompile-utility-and-classic-asp-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!