.net console app 32 vs 64 bit

.net, 32-bit, 64-bit, build, c#

Solution

If your app is configured to build for the "Any CPU" platform, then it'll run appropriately on either.

Just make sure it doesn't use any 32/64 bit specific stuff, or you'll run into problems.

MSDN docs here.

For some discussion on drawbacks, see here

Problem

Does a application in .NET need to be built in 64 bit to take full advantage of a machine with a 64 bit OS on it, or will it take advantage of it just as a 32 bit build. Basically, we have an issue with an out of memory exception and it was suggested to run the console app on a 64 bit box which "may" solve the issue. The question is can we just spin up a 64 box and throw the current app on it or do I need to rebuild the app in a 64 bit way.

Original source