سؤال

It could be that I'm overlooking the obvious, but how do I launch an ASP.NET MVC 4 application, being developed in Visual Studio 2012, in the Windows Phone 8 emulator? I've installed the WP8 SDK, and am able to debug Windows Phone apps in the WP8 emulator from Visual Studio, but there is no such option to launch the emulator from an MVC project. I am also unable to start the emulator directly, as it doesn't show up when I search for 'emulator' in the Windows 8 Metro screen.

هل كانت مفيدة؟

المحلول

My guess at this point is that there's no way of launching a Web application in the WP8 emulator directly from Visual Studio 2012. The jury's still out on how to start the emulator application from Windows 8 (i.e. not via Visual Studio) though :(

The only way I'm currently able to start the WP8 emulator is to launch a WP8 app in it from Visual Studio 2012.

The workaround I've found is to debug a WP8 app in the emulator via Visual Studio, stop debugging while not closing the emulator, open the Web app project in Visual studio, start it and navigate to it in the WP8 emulator.

Note that you must provide your computer's IP address to the browser, as the emulated WP8 is running as a separate host on the network. As such, you must also configure IIS Express to allow access via said IP address and also configure the firewall to let HTTP traffic on the port in question through.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top