How to test the retail version of your app for Windows Phone 8
May 03, 2013
Applies to: Windows Phone 8 only
Before you release your app in the Windows Phone Store, we recommend that you test its performance on a device as users will experience it.
When you build your app in Visual Studio, the code is not compiled into a native image, but into a machine-independent Common Intermediate Language (CIL) binary file. (CIL was formerly known as Microsoft Intermediate Language, or MSIL.) This CIL file is what you submit to the Store when you’re ready to sell your app. At that time, the binary file is converted from CIL to optimized Machine Dependent Intermediate Language, or MDIL. Finally, when the user downloads your app to a device, the MDIL file is linked to produce a native image. These steps are repeated in your development environment whenever you deploy your app to a Windows Phone 8 device.
The functionality of your app is not affected by the conversion to native code. However, the native image typically starts and runs faster.
This topic contains the following sections.
When you deploy and run your app without debugging, you’re testing it as an optimized native image.
To test your app as an optimized native image
In Visual Studio, on the Standard toolbar, select Device as the deployment target. You cannot test native code generation on Windows Phone Emulator.
Deploy and run your app on the device by using Ctrl+F5 (Start without debugging) or Alt+F1 (Start Windows Phone Performance Analysis) to test the app as an optimized native image.
Test the app’s performance and responsiveness.
If you want to deploy and debug your app on the device by using F5 (Start with debugging), you have to take the following additional steps.
To debug your app as an optimized native image
On the Tools menu, select Options to open the Options dialog box.
In the navigation pane of the Options dialog box, select Debugging. In the list of debugging options, make the following changes:
Clear the Suppress JIT optimization on module load option.
Clear the Enable Just My Code option.
Click OK to close the Options dialog box.
Deploy and debug your app.