none
Bing Map not supported for 'Any CPU' targets on Window 8 RP. RRS feed

  • Question

  • Hi,

    I am not able to compile Bing Map application for the 'Any CPU' targets i could see a lot of error BUT It get compiled for x86 and x64 without any error.. Is it the known issue ?


    Praveen kumar Sharma

    Wednesday, August 22, 2012 2:40 PM

Answers

  • If your application is written in C++ you do not have any Any CPU target. C++ compiles down to machine code which is per architecture.

    C# compiles to byte code which is not directly executable. When .NET loads your assembly it compiles it at runtime into architecture-appropriate instructions. Bing Maps is written in C++ and any project that uses it has to compile to a specific architecture so the correct Bing Maps dll can be included in your package.

    You should upload all three packages to the store and end users will never know that they get an architecture-specific package.

    • Marked as answer by Jhaliya Friday, August 24, 2012 4:48 PM
    Friday, August 24, 2012 4:39 PM

All replies

  • This has been discussed before on this forum: http://social.msdn.microsoft.com/Forums/en-US/bingmapswindows8/thread/52c12924-6a16-4000-93c7-a7d85c09a3a1/ You need to create a package for each target platform.

    http://rbrundritt.wordpress.com

    Wednesday, August 22, 2012 2:44 PM
  • Thanks Richard,

    I am new to microsoft technologies, So please correct me if my assumptions are wrong ..

    There are three targets (x86,x64 and ARM) for windows 8 c# application, it means that we should create three different package and upload them to Window Store. At the time of installation, Store will detect supported architecture on laptop/Desktop/Tablets and pick the right package to install along with the Bing Map binaries.

    If we are uploading different-2 packages for the targets then why do we have options for 'Any CPU' target.


    Praveen kumar Sharma

    Friday, August 24, 2012 5:53 AM
  • If your application is written in C++ you do not have any Any CPU target. C++ compiles down to machine code which is per architecture.

    C# compiles to byte code which is not directly executable. When .NET loads your assembly it compiles it at runtime into architecture-appropriate instructions. Bing Maps is written in C++ and any project that uses it has to compile to a specific architecture so the correct Bing Maps dll can be included in your package.

    You should upload all three packages to the store and end users will never know that they get an architecture-specific package.

    • Marked as answer by Jhaliya Friday, August 24, 2012 4:48 PM
    Friday, August 24, 2012 4:39 PM