开发者

Marketplace in Windows Phone 7 Emulator

I'm just wondering if there is a way to download some apps for the emulator. The thing is that we're about to start our own application and we want to make sure we're doing everything 'Windows Phone 7 Compliant'. I wa开发者_如何学Gont to go through some apps and see what / how they do stuff; like going to the settings, animations, navigations, etc.


Chris is correct, there's no marketplace access in the emulator.

The best thing you could do to check compliance of your app is to review the UI Design Guidelines and App Certification Requirements.


Please note that, you will not able to donwload app there, but this code will help to see MarketPlace on the Emulator.

Create a Sample Console App, Add Reference to C:\Program Files (x86)\Common Files\microsoft shared\Phone Tools\CoreCon\10.0\Bin\Microsoft.Smartdevice.Connectivity.dll  In the main method paste following code.

DatastoreManager datastoreManager = new DatastoreManager(1033);
Platform platform = datastoreManager.GetPlatforms().Single(p => p.Name == "Windows Phone 7");
Device device = platform.GetDevices().Single(d => d.Name == "Windows Phone Emulator");
device.Connect();
Guid appID = new Guid("{5B04B775-356B-4AA0-AAF8-6491FFEA5630}");
if (device.IsApplicationInstalled(appID))
{
    RemoteApplication app = device.GetApplication(appID);
    app.Launch();
}
Console.ReadLine();

I got the appid by using ILSPy for Windows Phone Library. Links which helped me.

  • http://christian-helle.blogspot.com/2010/11/how-to-launch-marketplace-in-windows.html
  • http://justinangel.net/WindowsPhone7EmulatorAutomation


No, you can't today. You can check out design guidelines at developer.windowsphone.com.


Windows Phone 7 devices have started appearing in the market. You should plan to get hold of one. I have done most of my Windows Phone 7 app development using the emulator. When I got my hands on a device few weeks ago, I started testing testing the apps and found a number of issues related to performance, network connectivity, etc. Therefore, it is really beneficial to test applications on a real device before submitting to the Marketplace.


Though the question was initially targeting Windows Phone 7, it might be interesting to other visitors to know that the WP8 emulator does have marketplace access.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜