[英]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 : 在visual studio 2015中,我创建了一个UWP(通用Windows平台)应用程序,并尝试在Windows 10 Mobile
5“模拟器中调试和运行它。但它显示了这个错误:
the project app1 needs to be deployed before it can be started. 项目app1需要先部署才能启动。 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下)
I am running Visual Studio in Parallels on a Macbook and also got this error. 我在Macbook上运行Parallels中的Visual Studio,也遇到了这个错误。 It turns out my project files were being saved on my mac via network drive. 事实证明我的项目文件是通过网络驱动器保存在我的Mac上的。 When I moved the entire project to the C:\\ drive for my parallels install, it worked fine. 当我将整个项目移动到我的parallels安装的C:\\驱动器时,它工作正常。
In my case I had a multi target solution incl. 在我的情况下,我有一个多目标解决方案,包括。 WinPhone and Andorid. WinPhone和Andorid。 The checkbox deploy in the solution configuration was set. 已设置解决方案配置中的复选框部署。 How I fixed the problem: 我是如何解决问题的:
Another alternative: 另一种选择:
在Visual Studio中,右键单击解决方案 - >转到Configuration Manager - >选中'deploy'复选框
For me, the problem was that I was running an SQL File from the from the Projekt separately. 对我来说,问题是我分别从Projekt运行一个SQL文件。 After closing the file it worked again. 关闭文件后,它再次工作。 The file was in Packages folder in: 该文件位于Packages文件夹中:
C:\Users\User\AppData\Local\Packages\YourApppackegesName
Deleting the directory "YourApppackegesName " may also work if closing the File doesn't work. 如果关闭文件不起作用,删除目录“YourApppackegesName”也可能有效。
in windows pc go to "Control Panel\\All Control Panel Items\\Devices and Printers" 在Windows PC中转到“控制面板\\所有控制面板项\\设备和打印机”
Right click on your connected windows mobile and remove it. 右键单击已连接的Windows移动设备并将其删除。
Retry your project with windows mobile It will work 使用Windows mobile重试您的项目它会工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.