[英]Deploy Cordova app to a Windows Phone 8.1 device from Windows 10
I'm trying to deploy my Cordova app to a WP 8.1 device from Windows 10. For this, I'm executing cordova run --device -- --phone
. 我试图将我的Cordova应用程序从Windows 10部署到WP 8.1设备。为此,我正在执行
cordova run --device -- --phone
。
However, this command fails with an error message that C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\Tools\\AppDeploy\\AppDeployCmd.exe
is missing. 但是,此命令失败,并显示一条错误消息,指出缺少
C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\Tools\\AppDeploy\\AppDeployCmd.exe
。 I manually checked and found out there is a C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\Tools
directory with some contents, but no AppDeploy
inside. 我手动检查了一下,发现这里有一个
C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\Tools
目录,其中包含一些内容,但内部没有AppDeploy
。
The next steps I took were: 我接下来采取的步骤是:
After all these steps, the Application Deployment tool is still not available. 完成所有这些步骤后,仍无法使用“应用程序部署”工具。
What am I doing wrong, ie what else do I need to install? 我在做什么错,即我还需要安装什么?
Update: 更新:
Error message: 错误信息:
ERROR: App deployment utilities: "C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\Tools\\AppDeploy\\AppDeployCmd.exe", not found.
错误:未找到应用程序部署实用程序:“ C:\\ Program Files(x86)\\ Microsoft SDKs \\ Windows Phone \\ v8.1 \\ Tools \\ AppDeploy \\ AppDeployCmd.exe”。 Ensure the Windows SDK is installed.
确保已安装Windows SDK。
For what it's worth, building works, and I can open the generated project in Visual Studio and deploy from there without any problems. 对于它的价值而言,构建是可行的,而且我可以在Visual Studio中打开生成的项目,然后从那里进行部署而不会出现任何问题。
I found a solution myself: 我自己找到了解决方案:
On my machine, I'm using two drives, and SSD ( C:
) and a hard drive ( Z:
). 在我的机器上,我正在使用两个驱动器,SSD(
C:
:)和一个硬盘驱动器( Z:
。 Windows and some programs are installed on C:
, but due to limited space, many programs are located on Z:
. Windows和某些程序安装在
C:
,但是由于空间有限,许多程序位于Z:
。
For some reason, AppDeployCmd.exe
was located on Z:
under the same path as it was expected on C:
, ie Z:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\Tools\\AppDeploy\\AppDeployCmd.exe
. 出于某种原因,
AppDeployCmd.exe
定位于Z:
在同一路径下,因为它是预期C:
即Z:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\Tools\\AppDeploy\\AppDeployCmd.exe
。 Apparently, parts of the SDK were installed on Z:
and others on C:
, even though I though this couldn't be customized in the wizard. 显然,SDK的某些部分安装在
Z:
而其他部分则安装在C:
,即使我无法在向导中自定义它。
Anyway, I just copied the AppDeploy
directory to it's dedicated position on C:
and deploying works now. 无论如何,我只是将
AppDeploy
目录复制到C:
上的专用位置,并且现在可以进行部署。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.