Couldn't run Cordova app on Windows Phone emulator


  • Hi,

    I'm a java/web/android/ios developer with 10+ years of experience. I'm trying to create a version of an app that I develop for windows phone, but I'm having some trouble.

    I purchased a Windows 10 Pro license (I normally work on Ubuntu/Mac) only for this project and installed it on my machine, installed Visual Studio Community and Visual Studio Tools for Apache Cordova. I downloaded the sample projects in Microsoft/cordova-samples repository on Github and tryed to run the project todo-angularjs on emulator, but Visual Studio shows the message "DEP1700 : The recipe file "C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\bin\Windows Phone (Universal)\Debug\" does not exist. You may need to build your project.". Here is the log of the build:

    1>------ Build started: Project: AngularJSTodoApp, Configuration: Debug Windows Phone (Universal) ------

    1>  ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac

    1>  ------ Name from source package.json: vs-tac

    1>  ------ Version from source package.json: 1.0.42

    1>  ------ Package already installed globally at correct version.

    1>  ------ Cordova tools 6.1.1 already installed.

    1>  ------ Build Settings:

    1>  ------ Build Settings:

    1>  ------    platformConfigurationBldDir: C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\bld\Windows Phone (Universal)\Debug

    1>  ------    platformConfigurationBinDir: C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\bin\Windows Phone (Universal)\Debug

    1>  ------    buildCommand: build

    1>  ------    platform: Windows Phone (Universal)

    1>  ------    cordovaPlatform: windows

    1>  ------    configuration: Debug

    1>  ------    cordovaConfiguration: Debug

    1>  ------    projectName: AngularJSTodoApp

    1>  ------    projectSourceDir: C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp

    1>  ------    npmInstallDir: C:\Users\jpdev\AppData\Roaming\npm

    1>  ------    buildTarget: WindowsMobileEmulator

    1>  ------    language: en-US

    1>  ------ Platform windows already exists

    1>  ------ Copying native files from C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\res\native\windows to platforms\windows

    1>  ------ Done copying native files to platforms\windows

    1>  ------ Updating plugins

    1>  ------ Currently installed plugins: cordova-plugin-inappbrowser@1.4.0,cordova-plugin-whitelist@1.2.2,cordova-plugin-geolocation@2.2.0

    1>  ------ Currently installed dependent plugins: cordova-plugin-compat@1.0.0

    1>  ------ Currently configured plugins:

    1>  ------ Preparing platform: windows

    1>  Executing "before_prepare"  hook for all plugins.

    1>  Executing "before_build"  hook for all plugins.

    1>  Searching PlatformJson files for differences between project vs. platform installed plugins

    1>  No differences found between project and windows platform. Continuing...

    1>  Generating config.xml from defaults for platform "windows"

    1>  Found "merges" for windows platform. Copying over existing "www" files.

    1>  Updated project successfully

    1>  Executing "pre_package"  hook for all plugins.

    1>  Executing "after_prepare"  hook for all plugins.

    1>  ------ Building platform: windows

    1>  Debug

    1>  ------ Build configuration options: --debug

    1>  Executing "before_compile"  hook for all plugins.

    1>  Searching for available MSBuild versions...

    1>  Found MSBuild v14.0 at C:\Program Files (x86)\MSBuild\14.0\bin\

    1>  Found MSBuild v12.0 at C:\Program Files (x86)\MSBuild\12.0\bin\

    1>  Found MSBuild v4.0 at C:\Windows\Microsoft.NET\Framework\v4.0.30319\

    1>  Building project: C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\platforms\windows\CordovaApp.Phone.jsproj

    1>  Configuration : debug

    1>  Platform      : x86

    1>    CordovaApp.Phone -> C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\platforms\windows\AppPackages\CordovaApp.Phone_1.0.0.0_x86_debug_Test\CordovaApp.Phone_1.0.0.0_x86_debug.appx

    1>    CordovaApp.Phone -> C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\platforms\windows\AppPackages\CordovaApp.Phone_1.0.0.0_x86_debug.appxupload

    1>    Your package has been successfully created.

    1>   BUILD OUTPUT: C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\platforms\windows\AppPackages\CordovaApp.Phone_1.0.0.0_x86_debug_Test\CordovaApp.Phone_1.0.0.0_x86_debug.appx

    1>  Executing "after_compile"  hook for all plugins.

    1>  Executing "after_build"  hook for all plugins.

    1>  ------ Copying back to project: Windows Phone (Universal)

    1>  ------ Source directory did not exist for copy: null

    1>  ------ Copying generated _pkginfo.txt file

    1>  ------ Done copying compiled files: Windows Phone (Universal)

    1>  ------ Checking for: C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\bin\Windows Phone (Universal)\Debug\

    1>  ------ Copying appx packages to output location

    1>  ------ No packageOutputPath is specified for the project. Nothing to copy.

    2>------ Deploy started: Project: AngularJSTodoApp, Configuration: Debug Windows Phone (Universal) ------

    2>Could not locate the appxrecipe file. You may need to build your project.

    2>Deployment failed.

    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

    ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

    DEP1700 : The recipe file "C:\Users\jpdev\Downloads\cordova-samples-master\todo-angularjs\AngularJSTodoApp\bin\Windows Phone (Universal)\Debug\" does not exist. You may need to build your project.

    Recently I installed an update of the Visual Studio Cordova Tools and I still having the same issue. I’m using Visual Studio Community 2015 Version 14.0.25123.00 Update 2, Visual Studio Tools for Apache Cordova Update 10 and Visual Studio Tools for Universal Windos Apps version 14.0.25219.00.

    Can you help?

    Thanks in advance.
    Friday, June 24, 2016 1:30 PM

All replies

  • Hi João Paulo Mafra,

    If you create a simple blank Cordova app, could you run it?

    Do you use the latest Windows 10 Environment(Not VM)?

    Please also repair your VS, and then test it again.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, June 29, 2016 3:09 AM