C # Use ilmerge to compress all referenced DLL files and exe files into one.

Source: Internet
Author: User

Today, I made a software program and found that there are only a few classes to be called when I want to release it, just like packaging them with the EXE files. It will be convenient to copy them to other places for use in the future, so I searched the internet and found that most of the Internet was implemented using ilmerge, so I tried it myself. However, there was no detailed step demonstration on the Internet, so I took some time to make a tutorial, someone else wants to package their ownProgram, There is an articleArticleYou can refer to the following link for more information:

 

1. First to the http://www.microsoft.com/downloads/details.aspx? Familyid = 22914587-b4ad-4eae-87cf-b14ae6a939b0 & displaylang = EN download ilmerge, only over 600 K, all of a sudden it's ready.

 

 

2. Install the SDK after the download:

 

 

3. The installation can be completed in less than one minute:

 

4. I am installed in the ilmergedirectory under the idisc. The following is the installation file, and it is just an ilmerge.exe file. We will use it to package programs.

 

5. For demonstration, I re-created a project and finally generated the main.exe and newdllfiles. In this case, newdllis the main.exe release file.

 

6. Enter the DOS window, enter the ilmerge directory, and then execute the followingCode:

I: \ ilmerge \ ilmerge.exe/ndebug/Target: winexe/out: newclient.exe mainexe.exe/log newdll. dll

 

 

 

7.ilmergeruntime window, which means the main.exe and newdll files are bundled together by nuoli:

 

 

The combination of idea and newdll. dll:

 

 

 

The above experiment is on the. NET framework3.5 platform under win7 and passed the test in the vs2008 environment

Related Article

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.