Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio (2013) doesn't list "Device" option for Windows Phone app deployment

I have Visual Studio 2013 with Windows Phone 8 SDK installed. The phone is unlocked and recognized by the machine. However, very often Visual Studio doesn't list either "Device" (not emulator either) in the list of deployment target. If I create a new solution and add a Windows Phone application, then I can see "Device" and emulators in the list, but when I load an existing solution with project of various types, I can only see "Start" and "Attach to IIS" as deployment choices. I tried to delete solution temporary files, but this didn't help.

So what makes VS lose Windows Phone deployment options and is there any way to fix it?

like image 564
Vagif Abilov Avatar asked Jan 25 '14 14:01

Vagif Abilov


2 Answers

As @WiredPrairie suggested, setting a project as a Startup project (and the single Startup project) resolved this issue. Sometimes you may need to delete *.suo file and reload the solution.

like image 143
Vagif Abilov Avatar answered Jan 01 '23 21:01

Vagif Abilov


In case anybody has problems in getting the "Device" option in the application toolbar, I noticed that it makes a difference, which programming language you use: using a Lumia from Nokia: with a windows phone c++ project Visual Studio did not list the "Device", just various emulators, with Windows phone 8.1 visual basic project it did list the "Device" option. Probably there are no c++ libraries on the phone. Just to let you know.

like image 20
prudnik Avatar answered Jan 01 '23 23:01

prudnik