Get the App
SLTechnology News&Howtos  ›  Development  › 

How to understand. Net precompiled commands

Shulou Source: shulou.com Published: 2022-06-03 07:43:25 10月03日 Update

This article mainly explains "how to understand .net precompiled commands". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to understand .net precompiled commands".

Net precompile command

C:\ WINDOWS\ Microsoft.NET\ Framework\ v2.0.50727\ aspnet_compiler.exe -? Show description

The command we need to choose is aspnet_compiler.exe-m IIS Metabase (but how to get the IIS Metabase)

Use IIS resource management tool to download address: http://download.csdn.net/detail/cake_green/6756847 this share of ha, you can also Baidu

Open Metabase and you can find the Metabase address of your website according to the path. OK, now that we have the Metabase address of IIS website, we can precompile NET. Everything is ready but Dongfeng.

Zl chose the sites ranked 300th in TOP to write scripts first.

The copy 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

The above script is saved as .bat

Needless to say, the wap1.txt file that needs to be traversed is your IIS Metabase address.

Why does zl have to add a number to the name of the file it traverses? if you answer correctly, there will be many such script files, and there will also be many multi-process technologies, you know? ha.

The contents are all the same, but the file names for traversing are different. Each of these 300 sites executes 30 scripts. That's fast.

Finally, we will talk about the operation steps.

1. Stop IIS

two。 Update the latest program

3. Also open precompile (1-10). Bat

Start IIS after 4.precompile (1-10) .bat exits completely

Thank you for your reading, the above is the content of "how to understand .net precompiled commands". After the study of this article, I believe you have a deeper understanding of how to understand .net precompiled commands, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Compilation command data database address file script content that is learning code file name program site website everything is ready except Dongfeng by the way everything is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB macOS Linux Shulou Tech Info Docker