64-bit and Visual Studio 2005
We keep receiving questions about Visual Studio 2005's support for 64-bit. Here is a set of factoids that should help answer the most commonly enquired issues:
(a) There are two flavours of 64-bit - AMD64 or X64, and IA64. Windows 64-bit installs on both architectures.
(b) There is no 64-bit version of VS. Visual Studio 2005 is available only as a 32-bit app. However, you CAN install VS on a 64-bit OS and use it to create, launch and debug 64-bit apps.
(c) VS will install only on X64. The .Net Framework and the Debugger components install on IA64, allowing you to remotely launch and debug applications on IA64 from a VS IDE installed on another machine.
(d) VS installed on either 32-bit or 64-bit OS can create 32-bit or 64-bit applications, but of course the applications need the corresponding platform to execute.
(e) You need the Professional or Team System versions to build X64 (AMD64) apps.
(f) You need Team System to build IA64 apps. Pro does not support this. See https://msdn2.microsoft.com/en-us/library/hs24szh9(VS.80).aspx
(g) On a 32-bit OS, the 64-bit compilers will not be installed by default, you will need to go to custom setup and check the option.
How to create 64-bit apps
A managed project is automatically built according to the architecture selected => default C# project created on AMD64 will be AMD64, X86 on X86. The native one is always 32-bit by default.
To explicitly set a platform:
(1) open the solution explorer, select solution, right click->Configuration Manager.
(2) go to 'Active Solution Platform', click New.
(3) in the 'New Solution Platform' dialog that comes up select the new platform say Itanium. Set 'Copy Settings From' to 'Any CPU' which was the default setting in the 'Active Solution Platform'.
(4) click OK.
You will see that the platform has changed to Itanium in the config manager. Now when you build the solution, you will get an Itanium exe.
Follow the same process for X64, and to rebuild 32-bit apps from that solution.
Comments
Anonymous
April 11, 2006
I cannot count how many times I've seen differing information about VS 2005's x64 support. Specifically, does the Standard Edition support x64 development?
Your blog entry, and the page you link to, indicate that it does not. However I asked this question on a different web log months ago and was told that Standard DOES support x64. (http://blogs.msdn.com/freik/archive/2005/11/02/488228.aspx) The product info page (http://msdn.microsoft.com/vstudio/products/compare/default.aspx) has since been changed to say that Standard DOES support x64, so I assume that it actually does.Anonymous
April 12, 2006
The comment has been removedAnonymous
July 31, 2006
If you ever had doubts about running your .NET 2.0 application on ITANIUM 64-bit platforms you can rest...Anonymous
December 21, 2007
deeptanshuv's WebLog : 64-bit and Visual Studio 2005 (tags: windows visualstudio 64-bit ) Gini coefficientAnonymous
June 05, 2008
PingBack from http://hristopavlov.wordpress.com/2008/06/06/compiling-sharepoint-solutions-on-64bit/Anonymous
September 12, 2008
PingBack from http://alipka.wordpress.com/2006/07/30/net-20-and-azman-on-itanium-platform/Anonymous
January 21, 2009
PingBack from http://www.keyongtech.com/2396188-solution-platform