Net pre-compiled command
C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ aspnet_compiler.exe -? Display description
We need to select the command aspnet_compiler.exe-m IIS metadatabase (but how to obtain the IIS metadatabase)
Use IIS resource management tools: http://download.csdn.net/detail/cake_green/6756847 this points ha you can also Baidu
Open Metabase. You can find the Metabase address of your website. Now, with the IIS website metadatabase address, we can pre-compile NET. Everything is ready.
Zl selects the TOP 300 websites to write scripts first
Copy codeThe Code is as follows:
@ Echo off
Setlocal
Cls
Color e
Echo program Pre-Compilation
For/f % I in (wap1.txt) do C: \ WINDOWS \ Microsoft. NET \ Framework \ v2.0.50727 \ aspnet_compiler.exe-m % I
Save the script as. bat.
The wap1.txt file is your IIS metadatabase address.
Why should I add a number to the file name to be traversed by zl? Correct? There will be many such script files and many multi-process technologies.
The same content is that the file names to be traversed are different. These 300 sites execute 30 scripts each time. This is faster.
Finally, let's talk about the procedure.
1. Stop IIS
2. Update the latest program
3. Enable precompile (1-10). bat at the same time.
4. precompile (1-10). After bat exits, start IIS