How to fix the mismatch between processor architectures?

I have a number of projects that I have combined in my project. The error message I get is the following:

A mismatch occurred between the processor architecture of the MSIL project being created and the help processor architecture of Interop.Domino, Version = 1.2.0.0, Culture = neutral, processorArchitecture = x86, x86. This mismatch can lead to runtime failures. Please consider changing the target processor architecture of your project through Configuration Manager to align processor architectures between your project and the links, or depend on links to the processor architecture that matches the target processor architecture of your project.

I found this link that gives some interesting information.

However, when I open Configuration Manager, everything looks fine:

Configuration manager showing Any CPU selected

Any idea what I can do to get rid of this compiler message?

+6
source share
2 answers

For me, this is similar to the Interop.Domino library you are referring to, especially for 32-bit (x86) programs. You can either try to find the 64-bit version of the library, or a link to it, or change the compilation type of your programs.

You can do this by opening the properties page for each of your projects and setting the platform target to x86.

You might want to first create an X86 configuration in Configuration Manager, partially check it, and partially so that it has the correct name when you look at it later.

Hope this helps

+5
source

He complains about the link for one of your projects. In particular, Interop.Domino. I suppose something is related to Domino, which probably means you are not in control of it.

There is very little chance that this will be a problem if you are in a Windows environment with Intel or AMD processors.

If you do not need this application accessing more than 2 GB of memory, then go ahead and compile the project referencing it in x86 mode if you are worried about a warning.

0
source

Source: https://habr.com/ru/post/973175/


All Articles