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:
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/;