Vs references third-party DLL file version inconsistency (Npoi vs. Icsharpcode.sharpziplib version in memcached)

Source: Internet
Author: User
Tags memcached

Recently when doing MailChimp integration with Web site functionality, we found that the dependencies SerivceStack.Text.dll in MailChimp.dll in MailChimp 2API (version and website in our Servi The version of CeStack.Text.dll (version conflicts when we wrote Mailchimpmanager MC = new Mailchimpmanager (ApiKey); An assembly exception with SerivceStack.Text.dll (version cannot be loaded when prompted.

We use the Ilmerge tool to combine the two assemblies MailChimp.dll and ServiceStack.Text.dll (version into one assembly and then reference them.

The command is as follows:

C:\Program Files (x86) \microsoft\ilmerge>ilmerge.exe/target:library/targetplat
Form:v4/out: "D:\MailChimp4.dll" "D:\MailChimp.dll" "D:\ServiceStack.Text.dll"/
Wildcards/log: "D:\AandB4.log"

1, first download the latest Ilmerge tool installation package:

Ilmerge is a assembly tool that incorporates. NET, the latest version of the Ilmerge download that supports. NET 4.0:


Ilmerge usage examples are as follows:

Ilmerge.exe/target:library/targetplatform:v4/out: "E:\Projects\ILMergeTest\A\Ref\AandB4.dll" "E:\Projects\ Ilmergetest\a\a\bin\debug\*.dll "/wildcards/log:" E:\Projects\ILMergeTest\A\Ref\AandB4.log "

Parameter description:

/target:library = "indicates that the build target is a DLL

/TARGETPLATFORM:V4 = "compiler platform for. net4.0

/out: "E:\Projects\ILMergeTest\A\Ref\AandB4.dll" = "Output file path after merging"

"E:\projects\ilmergetest\a\a\bin\debug\*.dll"/wildcards = "merged DLL, because wildcard characters are used here, so it is required." Wildcards

/log: "E:\Projects\ILMergeTest\A\Ref\AandB4.log" = "Output merge Log"

2. Related Reference links Help:



Vs references third-party DLL file version inconsistency (Npoi vs. Icsharpcode.sharpziplib version in memcached)

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.