![]() ![]() There is one thing I would modify though. The end result is a very simple command line application which you run to, amongst other things, install your XAP file to the emulator/phone and start this application. Used again a foreach : // iterate over all devces and write their namesįoreach (Device d in WP7SDK.GetDevices().ToList())Īs mentioned you should follow Justin Angel's blog post. Into line: WP7Device = WP7SDK.GetDevices().Single(d => d.Name = "Windows Phone Emulator") ![]() I used a foreach for retrieving the platform names: // iterate over all platforms and write their namesįoreach (Platform p in dsmgrObj.GetPlatforms().ToList())Ĭonsole.WriteLine("Platform: " + p.Name) Īnd the line: WP7Device = WP7SDK.GetDevices().Single(d => d.Name = "Windows Phone 7 Emulator") Into line: Platform WP7SDK = dsmgrObj.GetPlatforms().Single(p => p.Name = "Windows Phone 7") Looking deeply, the Justin blog seemed to be very ok for this problem I've had.Ĭhanged the line: Platform WP7SDK = dsmgrObj.GetPlatforms().Single(p => p.Name = "New Windows Mobile 7 SDK") I know that this is possible for XNA applications (info here) but I do not know if this is possible for apps made under Silverlight framework?! I know that there already exists a question related to this here, but I want a simple way to start a wp7 application (having the xap file) from command line without modify the code of the application. Is there a way to open a Windows Phone 7 Application in emulator using command line?
0 Comments
Leave a Reply. |