locked
what' s the difference between solution platform and project platform in vs RRS feed

  • Question

  • I want an application that can run at any cpu, but the applicaion is x86, so How I can to set the plantform?
    Friday, May 13, 2011 2:59 AM

Answers

  • I am not sure if I understand the question, but:

    - There is Windows 32-bit and Windows 64-bit

    - Windows 32-bit can only run 32-bit (x86) applications

    - Windows 64-bit can run either 32-bit (x86) applications or 64-bit (x64) applications

    - Applications can be .NET (managed, written in VB.NET, C#, managed .NET, etc.) or native (written in C++, etc.)

    - Native apps can only be 32-bit or 64-bit (determined at compilation time), but not both at the same time.

    - .NET 2.0 apps can be:

    * Only 32-bit if compiled as x86 platform. They will run always as 32-bit on Windows 32-bit and Windows 64-bit

    * Only 64-bit if compiled as x64 platform. They will run always as 64-bit on Windows 64-bit and will not run on Windows 32-bit

    * 32-bit and 64-bit (determined at run-time) if compiled as Any CPU platform. The will run as 32-bit on Windows 32-bit and as 64-bit on Windows 64-bit

    Notice that in most scenarios a 32-bit app is enough and can run on Windows 64-bit. Only apps which need to handle lots of data (Excel, Project, databases, etc.) need to be 64-bit. Even Visual Studio 2010 is a 32-bit app.

    About the solution/project platform model of Visual Studio see my posts:

    The convoluted build configuration automation model (EnvDTE/EnvDTE80)
    https://msmvps.com/blogs/carlosq/archive/2008/08/29/the-convoluted-build-configuration-of-the-automation-model-envdte-envdte80.aspx

    The diagram of the convoluted build configuration automation model (EnvDTE/EnvDTE80) (Part 2)
    http://msmvps.com/blogs/carlosq/archive/2008/09/01/the-fiagram-of-convoluted-build-configuration-automation-model-envdte-envdte80.aspx

     

     


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/
    Friday, May 13, 2011 5:58 AM