I have Visual Studio 2013 professional edition installed on Windows 10 64 bitPRO. So far the Windows Phone 8 Apps used to create, launch and debug fine.
Then I went ahead and downloaded Windows Phone 10 version emulators to visual studio 2013. it actually created some new Emulator entries (visible on Debug menu now).
However, when I launch the Windows phone 10 image from Visual studio, i get an error below
============================
[Window Title]
XDE.exe
[Content]
The VHD file C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\%CSIDL_PROGRAM_FILESX86%\Windows Kits\10\Emulation\Mobile\10.0.10240.0\Flash.vhd does not exist.
[Close]
Little more troubleshooting indicated that the XDE tool is not able to resolve this environment variable %CSIDL_PROGRAM_FILESX86% somehow.
Full Command was below
"C:\Program Files (x86)\Microsoft XDE\8.1\XDE.exe" /name "Emulator 8.1 WVGA 4 inch 512MB.myuser" /displayName "Emulator 8.1 WVGA 4 inch 512MB" /vhd "C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Emulation\Images\Flash.vhd" /video "480x800" /memsize 512 /diagonalSize 4 /language 409 /bootlanguage 409 /creatediffdisk "C:\Users\myuser\AppData\Local\Microsoft\XDE\8.1\dd.480x800.512.vhd" /snapshot /fastShutdown
When I tried to run this command with resolved variable name, XDE launched fine # individually #. (make sure you launch via Command Prompt; Windows Run prompt does work for some reason).
"C:\Program Files (x86)\Microsoft XDE\10.0.10240.0\XDE.exe" /name "Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB.myuser" /displayName "Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB" /vhd "C:\Program Files (x86)\Windows Kits\10\Emulation\Mobile\10.0.10240.0\Flash.vhd" /video "480x854" /memsize 512 /diagonalSize 4 /language 409 /bootlanguage 409 /creatediffdisk "C:\Users\myuser\AppData\Local\Microsoft\XDE\10.0.10240.0\dd.480x854.512.vhd" /snapshot /fastShutdown
The Question is. Where are these parameters Stored for XDE .. i.e. , From where Visual STudio picks up these parameters and passes on to XDE ? ?
FYI. I have see suggested Windows 10 emulator issues, none of those match my problem. Searching on Bing / Google doesn't render much info too .
Any clues, it would help me keep Windows 10 development using Visual Studio 2013
Related
I build and emulate my cordova app in android device and VisualStudio Android Emulator successfully in Visual Studio.
But when I try to build and deploy my app to windowsphone device I got this error that said the file "XapDeployCmd.exe" does not in %PATH%
ERROR: Error executing ""XapDeployCmd" /enumeratedevices":
'"XapDeployCmd"' is not recognized as an internal or external command,
WARNING: XapDeploy tool (XapDeployCmd.exe) didn't found. Assume that it's in
%PATH% and deploy fails.
When I referred to the path that I must find the file "XapDeployCmd.exe" in "C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment" I saw there is one file there: "XapDeploy.exe" and "XapDeployCmd.exe" is not there
so where is "XapDeployCmd.exe" ?
I'm using Visual Studio 2015 Community With Update 3 and I installed Windows Phone SDK 8.0
Tools for Apache Cordova only supports deploying to Windows devices 8.1.
To deploy to Windows 8, you need Visual Studio 2013 which has a completely different project structure, and I don't recommend using it.
Most users who are on a version of Windows 8 tend to be on version 8.1
As I stated beforeŘ I had installed Windows Phone SDK 8.0 .
with installing Windows Phone SDK 8.0 , Visual Studio 2012 will be installed.
But the file "XapDeployCmd.exe" is not with this version of visual studio.
Installing Update 5 (update 2 or later) of visual studio 2012 will install "XapDeployCmd.exe" with itself. Visual Studio 2012 Iso and problem will be solved.
after solving this problem if you encounter with error like 'Exception from HRESULT: 0x89721800' , refer to this article
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.
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.
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.
The next steps I took were:
Change my VS 2015 installation and make sure everything related to WP is checked
Install VS 2013 and do the same as above
Install all WP 8.1 related items from here (development tools, emulators)
After all these steps, the Application Deployment tool is still not available.
What am I doing wrong, i.e. 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. Ensure the Windows SDK is installed.
For what it's worth, building works, and I can open the generated project in Visual Studio and deploy from there without any problems.
I found a solution myself:
On my machine, I'm using two drives, and SSD (C:) and a hard drive (Z:). Windows and some programs are installed on C:, but due to limited space, many programs are located on Z:.
For some reason, AppDeployCmd.exe was located on Z: under the same path as it was expected on C:, i.e. 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.
Anyway, I just copied the AppDeploy directory to it's dedicated position on C: and deploying works now.
Is there anything like ' Android SDK Manager ' for windows to run windows phone 8 emulator? Or is it possible to run it only by using visual studio ?
Thanks in advance.
You can do it by run their execution file :
step 1 - Use Win + R
step 2 - "C:\Program Files (x86)\Microsoft XDE\8.1\XDE.exe"
or "C:\Program Files (x86)\Microsoft XDE\8.0\XDE.exe"
which emulator you want run just changed it to 8.0/8.1
When debugging a windows store app it is possible to Run Windows Store apps in the simulator. This a very nify option, as it runs windowed with increased functionality (simulating touch interaction from mouse control etc).
Example of app being run in the simulator:
Now, what I can do is go to: C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\11.0 and run Microsoft.Windows.Simulator.exe and then open my windows store app.
Is it possible to have a normal launch open up the simulator and run the app there?
It is possible to make a batch file to launch the simulator with parameters to open the app of my choosing? Something like: start C:\"Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\11.0\Microsoft.Windows.Simulator.exe" --launch something
Does anyone have the full command line that needs to go in the shortcut target to launch the 256MB emulator in the Windows Phone 7.1.1 CTP? The docs say to append " - 256 MB;" but that doesn't seem to work in my environment (Windows 7 / Visual Studio 2010 / WP 7.1 SDK and tools / 7.1.1 CTP SDK).
Try this command, replacing the path with the path on your machine:
"C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Tools\XDE Launcher\XdeLauncher.exe" "Windows Phone 7" "Windows Phone Emulator - 256 MB"