Any CPU is a build target for .net Applications which are compiled using the Visual-Studio IDE
Questions tagged [anycpu]
97 questions
1
vote
1 answer
Changing Platform of Existing DLL
I have a 3rd DLL that is built for "Any CPU". It needs (for a specific reason) to be rebuilt for x86. I have no access to the existing source code, but could via Reflector, decompile and recompile it myself.
Is there another way to do this without…

Ray Booysen
- 28,894
- 13
- 84
- 111
1
vote
3 answers
AnyCPu vs ODP.NET
My config: Vs2015 / X64 PC / ODP.NET X86
I've wrote a few DLL on 'Any Cpu' mode and I would like to write programs that use this DLLs and that can be work on X64 and X86 machins.
But I referenced "Oracle.DataAccess.dll" in my Dlls then I've a…

Babe59
- 45
- 1
- 9
1
vote
1 answer
Is there a way to build VS unit tests without AnyCPU
I develop a C# API for a HTML5+JavaScript library – I use CefSharp as the intermediate layer. Now I need to create some unit tests so that I'm sure the API works. The problem is that CefSharp cannot be (simply) used with AnyCPU whereas…

m93a
- 8,866
- 9
- 40
- 58
1
vote
1 answer
How to start a AnyCPU compiled COM Server
I use a Microsoft example for a COM-Server:
Out-of-process C# COM server (CSExeCOMServer)
A simple Console COM Client should just start up the Server and use its Methods, Properties and Events.
static void Main(string[] args)
{
…

MaLe
- 33
- 6
1
vote
0 answers
Why "Any CPU" application runs on 32bit
I create a new C# Console application and there is only one line of code in Main method
Console.ReadKey();
When I build the project with Any CPU platform, the application runs as 32-bit application. (I check this in Task Manager and SigCheck…

Ha Pham
- 373
- 3
- 18
1
vote
0 answers
Visual Studio Any CPU = Always x86?
A similar Question has been asked before (like 5 years ago). Today I looked for this question, because it seems there has something changed with that.
You see, as legid marked answers to the question "What does Any CPU target mean?" where "It…

Ravior
- 561
- 2
- 9
- 30
1
vote
1 answer
Can I develop x86 applications in VB.NET running x64 OS?
I have a W7 x64 PC but I aware about compatibility when the final application will be installed in another PC.
Does automatically run on any Windows PC?
What I should take in account to improve compatibility?

E_Blue
- 1,021
- 1
- 20
- 45
1
vote
3 answers
How can I use a VS Setup Project to install "Any CPU" code properly on either 32-bit or 64-bit Windows?
We have a large suite of products that include:
Desktop apps written in VB6.
Desktop apps written in .NET.
Windows services written in .NET.
ASP.NET web apps written in .NET.
ASMX and WCF services written in .NET.
All the .NET code is written in…

Christian Hayter
- 30,581
- 6
- 72
- 99
1
vote
1 answer
Setting CPU target to x86 on .NET 2.0 project adds .NET 3.5 dependencies
I have a project in VS2008 that targets .NET 2.0 framework. It was original set to build for AnyCPU. I changed it to x86 and for whatever reason, VS adds the following lines to .csproj:

AngryHacker
- 59,598
- 102
- 325
- 594
1
vote
1 answer
AnyCPU COM library (.tlb file) not working when called from external VB6 macro in x64
Okay my title might not be clear enough. I work with an application for which we can develop VB6 macros. This macro needs to work with a .NET dll that I also developped. When I launch the application in x86 mode and I try to run the macro, it's…

Thierry Mathez
- 101
- 10
1
vote
2 answers
x86 / anycpu - difference in casting?
My code :
decimal fAnzahlAktuell = 12;
decimal fMenge = 2;
decimal fAnzahlReserviertPickpos = 0;
decimal a = ((decimal)(fAnzahlAktuell - fAnzahlReserviertPickpos)) > fMenge ? fMenge : (decimal)(fAnzahlAktuell - fAnzahlReserviertPickpos);
decimal b…

Mohnkuchenzentrale
- 5,745
- 4
- 30
- 41
1
vote
0 answers
Running a .Net 4 console application in Windows 7 in 64bit mode when it is compiled in Mono as AnyCPU
I have made a console application in C# using MonoDevelop compiled with Mono 3.2.1 configured as AnyCPU in my Ubuntu system.
When I take this application into some Windows 7 64bit system and run it, in task manager list it shows a *32 postfix by its…

Mehran
- 15,593
- 27
- 122
- 221
1
vote
1 answer
How to make vb.net application that works at dual platforms (32/64 bit)
Can I create an application that can work on both windows platforms (32 / 64 bit ) at the same time ? if no , how can i create 64bit version and 32bit version ?

user1970090
- 215
- 4
- 7
- 15
1
vote
1 answer
Is it a good idea to set build/ debug configurations to run over "Any CPU" rather than x86 only?
A solution containing my MVC application is having nearly 20 different projects (one of them is MVC, few are WCF service applications, and the rest are class libraries.
They all work, and gets build fine.. but the issue is they are giving warnings…

Nirman
- 6,715
- 19
- 72
- 139
1
vote
0 answers
When build with anycpu, it has stackoverflow exception
I have a project it all in managed code (C# winform program). When I build in vs2010 (tried with .net 2.0 nad .net 4.03), if target with x64 or x84, they all runs greate in win 7 environment. But when build with anycpu, it has stackoverflow…

user1760614
- 11
- 3