Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
fixed comma placement
Source Link
Paul Eastlund

I'm new to project configuration in Visual Studio 2010 but, but I've done some research and still can't quite figure itthis issue out. I have a Visual Studio solution with a C++ DLL referencing the C# DLL. The C# DLL references a few other DLLs, some within my project and some external. When I try to compile the C++ DLL, I get this warning:

warning MSB3270: There was a mismatch between the processor architecture of the project being build "MSIL" and the processor architecture of the reference "[internal C# dll]", "x86".

It tells me to go to Configuration Manager to align my architectures. The C# DLL is set up with platform target x86. If I try to change this to something else, like Any CPU, it complains because one of the external DLLs it depends on has platform target x86.

When I look at Configuration Manager it shows the Platform for my C# DLL as x86 and for my C++ project as Win32. This seems like the right setup; surely I don't want the project for my C++ project to have platform set to x64, which is the only other option presented.

What am I doing wrong here?

I'm new to project configuration in Visual Studio 2010 but, I've done some research and still can't quite figure it out. I have a Visual Studio solution with a C++ DLL referencing the C# DLL. The C# DLL references a few other DLLs, some within my project and some external. When I try to compile the C++ DLL, I get this warning:

warning MSB3270: There was a mismatch between the processor architecture of the project being build "MSIL" and the processor architecture of the reference "[internal C# dll]", "x86".

It tells me to go to Configuration Manager to align my architectures. The C# DLL is set up with platform target x86. If I try to change this to something else, like Any CPU, it complains because one of the external DLLs it depends on has platform target x86.

When I look at Configuration Manager it shows the Platform for my C# DLL as x86 and for my C++ project as Win32. This seems like the right setup; surely I don't want the project for my C++ project to have platform set to x64, which is the only other option presented.

What am I doing wrong here?

I'm new to project configuration in Visual Studio 2010, but I've done some research and still can't quite figure this issue out. I have a Visual Studio solution with a C++ DLL referencing the C# DLL. The C# DLL references a few other DLLs, some within my project and some external. When I try to compile the C++ DLL, I get this warning:

warning MSB3270: There was a mismatch between the processor architecture of the project being build "MSIL" and the processor architecture of the reference "[internal C# dll]", "x86".

It tells me to go to Configuration Manager to align my architectures. The C# DLL is set up with platform target x86. If I try to change this to something else, like Any CPU, it complains because one of the external DLLs it depends on has platform target x86.

When I look at Configuration Manager it shows the Platform for my C# DLL as x86 and for my C++ project as Win32. This seems like the right setup; surely I don't want the project for my C++ project to have platform set to x64, which is the only other option presented.

What am I doing wrong here?

edited title
Link
Matt Wilko

How do I fix the .NET C++/C#Visual Studio compile error, "mismatch between processor architecture"?

The title should be an accurate question. The body had some paragraph love.
Source Link
Anthony Mastrean

Visual Studio How do I fix the .NET C++/C# solution hittingerror, "mismatch between processor architecture" error?

I'm new to project configuration in Visual Studio 2010 but, I've done some research (reading at things like thisresearch) and still can't quite figured thisfigure it out. I have a Visual Studio solution consisting primarily ofwith a C++ DLL and areferencing the C# DLL. The C++ DLL references the C# DLL, and the C# DLL references a few other DLLs, some within my project and some external.

  When I try to compile the C++ DLL, I get this warning:

warning MSB3270: There was a mismatch between the processor architecture of the project being build "MSIL" and the processor architecture of the reference "[internal C# dll]", "x86".

warning MSB3270: There was a mismatch between the processor architecture of the project being build "MSIL" and the processor architecture of the reference "[internal C# dll]", "x86".

It then tells me to go to Configuration Manager to align my architectures.

  The C# DLL is set up with platform target x86. If I try to change this to something else, like Any CPU, it complains because one of the external DLLs it depends on has platform target x86.

When I look at Configuration Manager it shows the Platform for my C# DLL as x86 and for my C++ project as Win32. This seems like the right setup; surely I don't want the project for my C++ project to have platform set to x64, which is the only other option presented. Can someone hint me at what I'm

What am I doing wrong here? It would be much appreciated, thanks.

Visual Studio C++/C# solution hitting "mismatch between processor architecture" error

I'm new to project configuration in Visual Studio 2010 but I've done some research (reading at things like this) and still can't quite figured this out. I have a Visual Studio solution consisting primarily of a C++ DLL and a C# DLL. The C++ DLL references the C# DLL, and the C# DLL references a few other DLLs, some within my project and some external.

  When I try to compile the C++ DLL, I get this warning:

warning MSB3270: There was a mismatch between the processor architecture of the project being build "MSIL" and the processor architecture of the reference "[internal C# dll]", "x86".

It then tells me to go to Configuration Manager to align my architectures.

  The C# DLL is set up with platform target x86. If I try to change this to something else, like Any CPU, it complains because one of the external DLLs it depends on has platform target x86.

When I look at Configuration Manager it shows the Platform for my C# DLL as x86 and for my C++ project as Win32. This seems like the right setup; surely I don't want the project for my C++ project to have platform set to x64, which is the only other option presented. Can someone hint me at what I'm doing wrong here? It would be much appreciated, thanks.

How do I fix the .NET C++/C# error, "mismatch between processor architecture"?

I'm new to project configuration in Visual Studio 2010 but, I've done some research and still can't quite figure it out. I have a Visual Studio solution with a C++ DLL referencing the C# DLL. The C# DLL references a few other DLLs, some within my project and some external. When I try to compile the C++ DLL, I get this warning:

warning MSB3270: There was a mismatch between the processor architecture of the project being build "MSIL" and the processor architecture of the reference "[internal C# dll]", "x86".

It tells me to go to Configuration Manager to align my architectures. The C# DLL is set up with platform target x86. If I try to change this to something else, like Any CPU, it complains because one of the external DLLs it depends on has platform target x86.

When I look at Configuration Manager it shows the Platform for my C# DLL as x86 and for my C++ project as Win32. This seems like the right setup; surely I don't want the project for my C++ project to have platform set to x64, which is the only other option presented.

What am I doing wrong here?

Notice removed Draw attention by CommunityBot
Bounty Ended with no winning answer by CommunityBot
added 5 characters in body
Source Link
Paul Eastlund
Loading
Notice added Draw attention by Paul Eastlund
Bounty Started worth 150 reputation by Paul Eastlund
Source Link
Paul Eastlund
Loading
default