Npoi solutions for conflicts with icsharpcode.sharpziplib versions in memcached

Source: Internet
Author: User
Tags memcached

The project has been using Npoi and memcached, has been peaceful, but recently upgraded Npoi to the latest version, there is a icsharpcode.sharpziplib version conflict issue.

Since the previous version of Npoi 1.x was used, the SharpZipLib version was version 0.84, and after upgrading to the latest version, SharpZipLib was converted to version 0.86.

But the memcached is not the latest version for use, but only the 0.84 version.

So the problem is, how to solve the same DLL different version of the conflict problem?

At present can get to the latest version of the Gitbub on the source of the Npoi, so we put the source down and re-modified to 0.84 version of the AH.

The idea is very good, but down the source code compile time, but found that the source of missing files caused the compilation is unsuccessful.

So, the text can not, then only to the martial.

Take out ILDSM to decompile the Npoi IL code, and then directly modify the reference to version 0.84.

{  . PublicKeyToken= (B7 7A 5C About  +  theE0 the)//. Z\v.4 .  . Ver 4:0:0:0}. Assembly externsystem.drawing{. PublicKeyToken= (B0 3F 5F 7F OneD5 0A 3 A)// .? _....:  . Ver 4:0:0:0}. Assembly externsystem.windows.forms{. PublicKeyToken= (B7 7A 5C About  +  theE0 the)//. Z\v.4 .  . Ver 4:0:0:0
}. Assembly externicsharpcode.sharpziplib{. PublicKeyToken= (1 bGenevaE6 AC F1 -4F the)// ...... Os. Ver 0:84:0:0}. Assembly externmscorlib as mscorlib_6{. PublicKeyToken= (B7 7A 5C About + theE0 the)//. Z\v.4 . . Ver 2:0:0:0}. Assembly externsystem.configuration{. PublicKeyToken= (B0 3F 5F 7F OneD5 0A 3 A)// .? _....: . Ver 4:0:0:0}http://blog.csdn.net/a497785609/article/details/8662295

Then it is very simple, because Npoi is a strong signed file, we need to put the source of the signature file

Npoi.snk out, and then ilasm to the DLL by the anti-compilation.

Also need to modify the file for NPOI.OpenXml4Net.dll.

Here, considering that everyone in the project to use the same 2 third-party libraries, there will be many, provide the next I have modified dll for everyone to download the use.

Download the file point I

Npoi solutions for conflicts with icsharpcode.sharpziplib versions 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.