Convert your own C # version ILMerge to compress all referenced DLL and exe files into an exe file, which is illustrated in the following figure:

Source: Internet
Author: User

The last day I used the ILMerge ON THE Micrsoft official website to bind the exe and dll files.

Http://www.microsoft.com/downloads/details.aspx? FamilyID = 22914587-B4AD-4EAE-87CF-B14AE6A939B0 & displaylang = en

However, the operation is completed in the CMD command line. It is unfriendly and you have developed a program for flexible operations.

 

This is the ILMergeEx I wrote:

The following describes how to use the program:

1. Open the program, as shown in:

2.if you want to bind windowsformsapplication2.exe and newDll. dll in the newly created folder under the table to generate an exe file. newDll. dll and newExe.exe are the application items in windowsformsapplication2.exe:

3.open the program. In the main file, choose windowsformsapplication2.exe. For the reference assembly, select newExe.exe and newDll. dll. to export the new exe file, set it to HC. The path is also the new folder on the desktop:

 

4. Click Export. The program will automatically call ILMerge to bind the main file to the referenced program. At this time, the DOS program running is the same as running ILMerge directly in CMD. D:

5. Check the newly created exe file in the newly created folder:

 

 

The above test passed in VS2008, WIN7, And. NET3.5 environments.

 

Program:

Http://files.cnblogs.com/huangcong/ILMergeEx.rar

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.