Any CPU is a build target for .net Applications which are compiled using the Visual-Studio IDE
Questions tagged [anycpu]
97 questions
0
votes
1 answer
VS2012 Choosing between x86, x64, AnyCPU, AnyCPU32bitpreferred and Referencing 3rd Party DLLs
I am looking for advice for the best way to set up a new VS2012 C# project. I want to target both x86 and x64 architectures. However, I have 3rd Party DLLs that I must reference. There are two versions of the same DLL provided; one compiled for…

bbs_chad
- 75
- 1
- 6
0
votes
1 answer
ODP.NET x64 ANYCPU and Prefer 32-bit setting
My machine has the latest Oracle ODP.NET x64 installed (xCopy version). My machine is x64. I don't know if the target machines will be x86 or x64 so I have set the build properties to AnyCPU in VS 2012. There is a default checkbox active "prefer…

Sander
- 73
- 1
- 7
0
votes
2 answers
x86 program wants to access AnyCpu instead of x86
I have some problem with AnyCPU vs x86 compiler setting, but if I understand it
correctly my problem seems to be the other way around as it is normally.
Currently everything is residing on a Win 7 64 bit machine with Visual Studio 2010. The…

Mano
- 1
- 1
- 1
0
votes
1 answer
BadImageFormatException when targeting 'AnyCPU' on 64-bit machine
When I transfer my source on to a Win7 64-bit machine I get a BadImageFormatException when I try to compile and run the solution targetting AnyCPU.
This does not happen on XP 32-bit.
What is the problem?

CJ7
- 22,579
- 65
- 193
- 321
0
votes
1 answer
Silverlight projects stopped compiling under "Any CPU" option
I have an x64 build server that has been compiling Silverlight projects for a long time without any issues. Then suddenly it started complaining "Silverlight 4 SDK is not installed" and now I can compile SL projects only under "x86" platform. I'd…

kirill_l
- 595
- 1
- 6
- 16
-1
votes
0 answers
InnoSetup creating Wow6432-Registry-Node on 32bit system
I have a InnoSetup-Script that installes .net-App build with AnyCPU.
The Script needs to access the Registry (read and write Values).
[Registry]
Root: HKLM; Subkey: "SOFTWARE\MyCompany"; ValueType: string; ValueName: "Key"; ValueData: "Value"
When…

suriel
- 191
- 1
- 10
-2
votes
1 answer
Need to move to ANYCPU with SQL Server CE
Our application currently running on X86 mode with SQL Server CE 3.5. I need to move to ANYCPU mode. I tried to upgrade SQL Server CE 4.0 since I heard that SQL Server CE 3.5 doesn't support for ANYCPU. Change my project to ANYCPU already but gave…

Dilhan RK
- 114
- 1
- 7