locked
Developing on a 64-bit Workstation, deploying to a 32-bit environment RRS feed

  • Question

  • User-1290778495 posted

    Our company will be moving to Windows 7 in the near future. That is, my workstation is currently running Windows XP and will be loaded with the Windows 7 O/S.

    I support a Visual Studio 2005 SCSF/CAB application (Enterprise Library 3.1, WCF w/ .NET Framework 3.0/VS 2005 Extensions). The application is hosted in a 32-bit Citrix environment and our Citrix group has no plans for moving to a 64-bit O/S in the near future, so my workstation will most likely move to Windows 7 before our Citrix environment will move to a 64-bit O/S.

    I know that in order to support my application on a 64-bit O/S, I will need to convert the application to Visual Studio 2008 SCSF 2008, Enterprise Library 4.1. Is is possible to develop an application on a 64-bit O/S and be able to deploy the application into a 32-bit environment?

    Thanks!

    Kevin

     

    Thursday, May 6, 2010 11:35 AM

Answers

  • User-37275327 posted

    I am not sure that if you build an application from 64bit and run on 32bit. Correct me if am wrong.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 7, 2010 4:15 AM

All replies

  • User-863835478 posted

    What did MS tech support say? 

    Thursday, May 6, 2010 2:08 PM
  • User-1164602833 posted

    Short Answer: Yes.

    Long Answer: Yes. Just change the 'Platform Target" in your project settings to "x86".

    Thursday, May 6, 2010 4:50 PM
  • User-37275327 posted

    I am not sure that if you build an application from 64bit and run on 32bit. Correct me if am wrong.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 7, 2010 4:15 AM
  • User-1164602833 posted

    I am not sure that if you build an application from 64bit and run on 32bit. Correct me if am wrong.


    Correct. You cannot run a x64 program in a x86 environment. However, many architectures developers need to accommodate such as Exchange server are now only available in x64 flavors. During development I change the project to publish only x86 for the feature of being able to pause execution, edit code then resume. If you're ready to publish your project, I recommend leaving the "Platform Target" setting to "Any CPU". Your resulting executable will be considerably larger, but it will contain both x86 and x64 versions and will decide at first run which version to use.

    Friday, May 7, 2010 9:21 AM
  • User-1290778495 posted

    Thanks for your inputs!

    I have received confirmation that you can develop a 32-bit application in a 64-bit environment and then deploy the 32-bit application into a 32-bit environment.

    Monday, May 10, 2010 2:31 PM
  • User-37275327 posted

    That's acceptable.

    Monday, May 10, 2010 11:59 PM
  • User-863835478 posted

    So it is possible to develop an application on a 64-bit O/S and then deploy the application into a 32-bit environment by leaving the "Platform Target" setting to "Any CPU"
     

    But where is the setting located?

    Wednesday, May 12, 2010 9:07 PM
  • User-952121411 posted

    So it is possible to develop an application on a 64-bit O/S and then deploy the application into a 32-bit environment by leaving the "Platform Target" setting to "Any CPU"
     

    But where is the setting located?

     

    In VS.NET 2008 goto Build -> Configuration Manager. From here you will see a 'Platform' column with a dropdown where you can specify the platform as 'Any CPU' or select <New...> to configure an x64 or x86 designation specifically if needed.

    Thursday, May 13, 2010 4:57 PM