问题
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