jstedfast / MimeKit

A .NET MIME creation and parser library with support for S/MIME, PGP, DKIM, TNEF and Unix mbox spools.
http://www.mimekit.net
MIT License
1.82k stars 369 forks source link

Problem compiling tag 3.0.0 in x64 #1031

Closed ghost closed 4 months ago

ghost commented 4 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

ghost commented 4 months ago

Greetings. I have a windows application running under ISS [w3wp] 32 bit. For memory reasons we decided to switch to the x64 version [and also the w3wp service now runs at x64] The problem is that when my application tries to access the MimeKit.dll taken from nu-get I get the following error:

File or assembly 'MimeKit, Version=3.0.0.0, Culture=neutral, PublicKeyToken=bede1c8a46c66814' or one of its dependencies could not be loaded. The manifest definition of the specified assembly does not match the assembly reference. (Exception from HRESULT: 0x80131040)

At this point via github I downloaded the sources of the 3.0.0 tag. If I compile ANYCpu everything is fine but if I compile X64 I have a lot of compilation errors. See attached file mimeKit_x64

How can I get out of this situation and be able to use MimeKit.dll within an X64 environment?

Thanks in advance. Any suggestions will be greatly appreciated

Domenico Giuseppe Sala [italy] d.sala@teamsystem.com

jstedfast commented 4 months ago

Compile for AnyCPU and you can use it on x64