Deploy UWP App Project In VS2015

2019-03-11 09:58发布

In visual studio 2015 I created an UWP (Universal Windows Platform) app, and try to debug and run it in Windows 10 Mobile 5" emulator. But it shows me this error :

the project app1 needs to be deployed before it can be started. verify the project is selected to be deployed the solution configuration manager, or deploy it explicitly by clinking one of the deploy commands in the build menu.

What is deploy? And how I can deploy my project !?

Thanks !

Here is the error image:

enter image description here

9条回答
Juvenile、少年°
2楼-- · 2019-03-11 10:09

Hello Go to your solution (right Click) and you can see the "Deploy Solution". See this picture. !

查看更多
叼着烟拽天下
3楼-- · 2019-03-11 10:11

Right click on the Solution in Solution Explorer -> Configuration manager... Check the box in Deploy column in front of you Windows Phone Project

查看更多
时光不老,我们不散
4楼-- · 2019-03-11 10:11

In Visual Studio, right-click the Solution --> go to Configuration Manager --> check 'deploy' Checkbox

查看更多
看我几分像从前
5楼-- · 2019-03-11 10:11

in windows pc go to "Control Panel\All Control Panel Items\Devices and Printers"

Right click on your connected windows mobile and remove it.

Retry your project with windows mobile It will work

查看更多
趁早两清
6楼-- · 2019-03-11 10:15

In my case I had a multi target solution incl. WinPhone and Andorid. The checkbox deploy in the solution configuration was set. How I fixed the problem:

  • Set the WinPhone Project as Startup project
  • and then select the appropriate deployment device in my case the emulator
查看更多
Rolldiameter
7楼-- · 2019-03-11 10:18

For me, the problem was that I was running an SQL File from the from the Projekt separately. After closing the file it worked again. The file was in Packages folder in:

C:\Users\User\AppData\Local\Packages\YourApppackegesName

Deleting the directory "YourApppackegesName " may also work if closing the File doesn't work.

查看更多
登录 后发表回答