Timeline for answer to How do I fix the Visual Studio compile error, "mismatch between processor architecture"? by David Sacks
Current License: CC BY-SA 3.0
Post Revisions
21 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 21, 2022 at 23:05 | comment | added | iSR5 |
@DheerajKumar in my case, the referenced dll where referenced from another project (same solution) while it should be referenced from the references folder (it's been referenced incorrectly from one of my collages). So, updating the reference path to the the correct folder fix the issue.
|
|
| May 17, 2019 at 9:11 | comment | added | Tobias Feil | Thank you! This works for Nunit projects as well, since they don't have a "Properties" node in the solution explorer so you can't set their platform like that. | |
| Nov 21, 2018 at 11:26 | comment | added | Dheeraj Kumar | Not working for me, also it is not a warning, it is an error. Can you help? | |
| Feb 19, 2018 at 19:41 | comment | added | jrh | Note that if you work with the Windows Forms designer, which is in Visual Studio, which is x86 only, changing from "Any CPU" to "x64" can cause the designer to stop working. | |
| Mar 23, 2017 at 15:12 | history | edited | casperOne | CC BY-SA 3.0 |
deleted 22 characters in body
|
| Aug 8, 2016 at 14:31 | comment | added | gravidThoughts |
@Xonatron @ThePartyTurtle This answer may have been correct in Visual Studio 2010, but it is no longer applicable. There are two locations for setting the platform target. In the configuration manager #and# in the project's build properties page. I would bet it is configured for Any CPU in the project's build properties page.
|
|
| Mar 30, 2016 at 18:36 | comment | added | ThePartyTurtle | I have two warnings after building, both from .dlls whose processor architectures are "AMD64" and are both in the same project. I have changed that project's configuration to x64 in the project's build configurations but the warnings persist. This answer looks like it ought to be the solution I need, but I am still getting a the two warnings and run-time errors. Anyone have any input? | |
| S Jul 28, 2015 at 3:07 | history | suggested | Serp C | CC BY-SA 3.0 |
Clarity and grammar fixes
|
| Jul 28, 2015 at 2:30 | review | Suggested edits | |||
| S Jul 28, 2015 at 3:07 | |||||
| Dec 12, 2013 at 0:34 | comment | added | Jon Hanna | @MatthewDoucette do you have the reference libraries installed from the SDK for the appropriate .NET version? I found this answer trying to figure out why I was having it with 4.5 projects in SharpDevelop, and installing the Windows8/.NET4.5 solve it for me, so perhaps that (or equiv if you're using a different framework version) is the answer for you. | |
| Dec 3, 2013 at 19:18 | comment | added | Xonatron | After my last two comments above, I can finally address this issue. My project shows x86 and Xbox 360 (two projects) and does not have "Any CPU" selected, for both debug and release for both projects. Any ideas on why I'm getting the error? | |
| Dec 3, 2013 at 18:41 | comment | added | Xonatron | Just found out how to enable the build menu in Visual Studio 2010 Express: Tools menu -> Settings -> select 'Expert Settings' | |
| Dec 3, 2013 at 18:34 | comment | added | Xonatron | The Build menu seems to be missing in VS C# 2010 Express. How do I get to it? I wish they wouldn't hide things. | |
| May 25, 2013 at 1:15 | comment | added | Yaur | It very well CAN hurt something. An Any CPU exe will load as x64 on a 64 bit OS and be unable to load x86 dlls. So if you have a dependency on a particular platform your really should set your platform correctly. | |
| May 8, 2013 at 17:22 | vote | accept | Paul Eastlund | ||
| S Jan 9, 2013 at 18:32 | history | edited | Chris Seymour | CC BY-SA 3.0 |
add code block to '<New..>' - it was hidden as HTML tags; add bold highlighting to the main point of the paragraph
|
| S Jan 9, 2013 at 18:32 | history | suggested | culix | CC BY-SA 3.0 |
add code block to '<New..>' - it was hidden as HTML tags; add bold highlighting to the main point of the paragraph
|
| Jan 9, 2013 at 18:28 | review | Suggested edits | |||
| Jan 9, 2013 at 18:32 | |||||
| Sep 6, 2012 at 1:21 | comment | added | Tod Thomson | That being said, I think David's answer is correct, this warning is letting you know that your app really isn't "AnyCPU" so you will run into issues when you eventually deploy it to the wrong architecture. | |
| Sep 5, 2012 at 23:26 | comment | added | Tod Thomson | I just installed the RTW of Visual Studio 2012 and opened a preexisting 2010 solution and started seeing the same warning, so it's something that is still existing in the RTW. | |
| Apr 17, 2012 at 18:04 | history | answered | David Sacks | CC BY-SA 3.0 |