How to Deploy .xap using command prompt

醉酒当歌 提交于 2019-12-24 13:56:07

问题


I want to deploy xap to windows phone emulator 7.1 using command prompt and i have been following the msdn article http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402565(v=vs.105).aspx#BKMK_commandline

i am able to build the project using this command: MSBuild D:\Projects\PhoneApp1\PhoneApp1\PhoneApp1.csproj

but when i run this command: XapDeployCmd.exe /installlaunch D:\PhoneApp1.xap /targetdevice:xd i get error saying "'XapDeployCmd.exe' is not recognized as an internal or external command,operable program or batch file." i have the visual studio update 2 installed.what does this mean and how should i use command prompt for deploying my xap.


回答1:


Did you check if XapDeployCmd.exe direcoty is on your environment path?

if not you can add the whole path, like: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment\XapDeployCmd.exe /installlaunch D:\PhoneApp1.xap /targetdevice:xd

I would also check if you have any emulator installed



来源:https://stackoverflow.com/questions/23444498/how-to-deploy-xap-using-command-prompt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!