How to maintain the old version of the project

Source: Internet
Author: User

today, I encountered a tough problem. A project that has been in operation for more than two years reflects a problem. The problem is simple, but there are many DLL references that involve changes, in addition, the project version is old, and this change will affect almost all DLL updates. It is impossible to update the DLL separately, and the above version upgrade cannot be completed (according to the company's regulations, the upgrade may be costly, huh, huh), and the VSS has been cleared, the current Code was not left. If the DLL can be directly modified like an ASP page, it will be okay to save it and run it.
I checked the following information and found two methods: (1) Using Two built-in tools, ildasm and ilasm, and using IL (2.. Net reflector plug-in filedisassembler.
first, let's talk about the first method. Use ildasm to open the DLL from the project and there is a dump menu under the file (if the Chinese version is the dump menu under the file ), in the pop-up window, click OK. The generated suffix is. il file. Next we need to know a little about the Il language. I used to think that it is useless to learn this language. I can only learn this language today. Because the problem is small, I can do it in lines 4 and 5. After saving the file, use ilasm to re-compile the Il file. Use the command such as ilasm.exe gsp_workflowengine.il/dll/output = gsp_workflowengine.dll. However, I encountered a lot of problems when writing Il, but I still encountered compilation errors, or I didn't write well. It seems that learning Il is still a lot of benefit.
the second method is to use. net reflector plug-in filedisassembler. After the plug-in is mounted, the filedisassembler menu item will appear in the menu. Open the DLL to be decompiled to generate the source code, that is, the obfuscator is used, the problems to be modified are also easy to find. After all, we are still very familiar with our own code. Re-build the solution, add the DLL to be referenced, and re-compile it.

at the end of the article, these two methods are essentially the same principle. I personally think the first method is very nice if I have a good grasp of Il, even at the project site, it is quite easy to modify some minor issues. This reminds me that. for non-strongly-Named DLL, This Il-level modification is effective, but it is quite unfavorable for software protection, it is very easy for us to find the genuine code information from Il, directly remove it, and recompile it to crack it. For intruders, It is also easy to modify the system.. Net Program .

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.