简体   繁体   中英

Deploy UWP App Project In VS2015

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:

在此输入图像描述

右键单击解决方案资源管理器中的解决方案 - >配置管理器...选中Windows Phone项目前面的“部署”列中的框

更改Debug x86 ,设置Debug Any CPU ,然后右键单击您的UWP项目并选择Deploy(第三个选项,在Rebuild下)

Hello Go to your solution (right Click) and you can see the "Deploy Solution". 看到这张照片。 !

I am running Visual Studio in Parallels on a Macbook and also got this error. It turns out my project files were being saved on my mac via network drive. When I moved the entire project to the C:\\ drive for my parallels install, it worked fine.

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

Another alternative:

  1. Click Build Menu
  2. Deploy Selection
  3. Hit F5 to start the default/Start-Up project

在Visual Studio中,右键单击解决方案 - >转到Configuration Manager - >选中'deploy'复选框

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM