[My ASP.NET Learning History] About the confusion of .dll files

xiaoxiao2021-03-06  80

Just encountered a problem when writing the program, just want to compile all the .cs files into .dll. (Because since the development, I have not tried it to compile it, just know that there is such a thing. Maybe the company has nothing to do!) (说 白, people lazy! ^ O ^). Ok, return to the topic, I really don't know how to compile, I only know the CSC command. Ah! When starting in the start -> 游> -> CMD, the system has prompted anything wrong! This is a strange thing! So then find it, search the C disk: csc.exe, finally found! ^ o ^! OK, you can compile it now! CSC / Target: library * .csok has been compiled! Happy in ING ............... I then try again to see all .s DELETE, can you still run! Oh! It's really! Still in joy, ING ......................................................................................................................................................... ? ? The problem is coming! The program is still normal! Confuse ing ........ This makes me think of IIS. So restart it. Run the program again. ? ? Strange, or you can run normally! That takes all the procedures to another directory! Haha! Finally, I finally became wrong! But look at the mistake! It's a bit dizzy! The error message is this sentence: Well! That change it to: Try! Still an error! Quietly think about it! ................................ Suddenly understand! It turns out that there is no virtual directory! (I also fly!) OK, the virtual directory is completed, see if you can run! ? ? Delicious things are still! The program is still normal! In confusion, simply delete the .dll files that have just been compiled! ? ? Strange or the same! The program is still working very normal! What is going on? It is difficult to say that the system reads the generated temporary DLL? OK, let's take a look at the .NET Framework so Temporary Files is DELETE! Enter: d: /winnt/microsoft.net/framework/v1.1.4322/temporary ASP.NET FILES deletes all.

Run the program to see! ^ o ^ I want to be no problem! ? ? knock out! The program is still running fine! I was confused, I suddenly thought of vs.net! So I started to find the .dll file compiled in vs.net to the bin directory! Ok, delete it! Run again! OK! It finally became wrong! I understand this! It turns out that when VS.NET is compiled in the program, it has already packaged all the background programs! (Don't fall down! ^ O ^) Try again to see what this file is packaged! So all other than .ASPX leaves other deletions! OK! No problem at all! Happy ing ................ Suddenly, I have a huge thinking! Remember that in Java and C , there are many anti-compilation tools! Go on the Google search C # anti-compilation. Wow! I have found a very good tool. Net Reflector (old written). Download address: http://www.aisto.com/roeder/dotnet

Play this tool! Really bull! In addition to reading the entry method, function, variable, etc., you can also compile the source code. I have stopped here! Wow, you can rest! Go to the lower shell tool! ^ o ^ ======================== Last attached: To automatically load the CSC command in the CMD, you can use the autoexec under the root directory of the system. Add this sentence in the BAT file: @echo offath = d: /winnt/microsoft.net/framework/v1.1.4322/;

转载请注明原文地址:https://www.9cbs.com/read-93656.html

New Post(0)