title: Visual Studio 2015 RTM Cordova project won't debug/deploy to Android, Windows, Windows Phone
body: <p>I've got a feeling I upgraded to Visual Studio 2015 RTM too early.  Visual Studio Emulator for Android would no longer launch, claiming that the pre-release version had expired.</p>
  
  <p>I ran the RTM installer, allowing it to replace Release Candidate components as needed.  The process ran smoothly, but now after upgrading, Cordova projects will no longer deploy or debug.  </p>
  
  <p>With the Release Candidate, the toolbar's green Start button had a dropdown for choice of device.  Now with RTM version, this button is just labelled "Start" and its dropdown provides no options for device selection.  Instead, the only option in the dropdown is "Start".  As I change the selection in the "Solution Platform" dropdown, located left of this Start button, the Start button still provides no choices.  See images below.</p>
  
  <p>Solution Platform: Android
  <a href="https://i.stack.imgur.com/eC7qo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eC7qo.png" alt="Cordova-Android"></a></p>
  
  <p>Solution Platform: Windows-AnyCPU
  <a href="https://i.stack.imgur.com/FKy14.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FKy14.png" alt="Cordova-Windows"></a></p>
  
  <p>Solution Platform: Windows Phone 8
  <a href="https://i.stack.imgur.com/7Qzmd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7Qzmd.png" alt="Cordova-WP"></a></p>
  
  <p>The Debug menu's "Start Debugging" item is disabled.  If I click the Start toolbar button, I get this message:  "The debugger cannot continue running the process.  Unable to start debugging."  </p>
  
  <p>I've confirmed that Visual Studio Emulator for Android is functional.  I've got the profile '5" Lollipop (5.0) XXHDPI Phone' working.</p>
  
  <p>For a comparison, I've also added a new Windows Phone 8.1 project to my solution and confirmed that project allows selecting a Debug Target.  In the toolbar, the word Start is replaced with "Emulator 8.1 WVGA 4 inch 512MB".  With this project as the Startup Project, the Debug menu now has "Start Debugging" enabled.  This project starts as expected.</p>
  
  <p><a href="https://i.stack.imgur.com/FvcFO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FvcFO.png" alt="C#-WP81"></a></p>
  
  <p>Since the Visual Studio Emulator for Android is functional, and Visual Studio successfully targets the Windows Phone emulator, it seems there's a misconfiguration related to Visual Studio's Cordova project type.  The linkage between a VS2015 Cordova project and its "device" targets is missing.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE:</strong>  See also:  <a href="https://stackoverflow.com/questions/31530014/unable-to-start-debugging-in-visual-studio-rtm-for-cordova-app">Unable to start debugging in Visual Studio RTM for cordova app</a></p>
  
  <p><strong>UPDATE 2:</strong>  I've made several adjustments:</p>
  
  <ol>
  <li><p>Tools for Apache Cordova's Dependency checker found missing Android SDK components.  I've added these, satisfying Dependency Checker.  </p></li>
  <li><p>Tools for Apache Cordova's Environment Variable Overrides showed no path to ADT_HOME.  I've set it to "C:\Program Files (x86)\Android\android-sdk".</p></li>
  <li><p>My build output showed "[taskdef] could not load definitions from resource emma_ant.properties. it could not be found."  I added a system environment variable ANT_HOME pointing to "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3", and added ";%ANT_HOME%\bin" to the PATH.  Still "emma_ant.properties" message remains, but it is not up to the level of a warning or error.</p></li>
  </ol>
  
  <p>With Solution Platform set to Android, my current build output is:</p>
  
  <pre><code>1&gt;------ Rebuild All started: Project: BlankCordovaApp2, Configuration: Debug Android ------
  1&gt;  Buildfile: C:\Users\billvo\Documents\Visual Studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\build.xml
  1&gt;    [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
  1&gt;
  1&gt;  -check-env:
  1&gt;   [checkenv] Android SDK Tools Revision 23.0.0
  1&gt;   [checkenv] Installed at C:\Program Files (x86)\Android\android-sdk
  1&gt;
  1&gt;  -setup:
  1&gt;       [echo] Project Name: MainActivity
  1&gt;    [gettype] Project Type: Application
  1&gt;
  1&gt;  -pre-clean:
  1&gt;
  1&gt;  clean:
  1&gt;  [getlibpath] Library dependencies:
  1&gt;  [getlibpath]
  1&gt;  [getlibpath] ------------------
  1&gt;  [getlibpath] Ordered libraries:
  1&gt;    [taskdef] Could not load definitions from resource emma_ant.properties. It could not be found.
  1&gt;
  1&gt;  nodeps:
  1&gt;
  1&gt;  -check-env:
  1&gt;   [checkenv] Android SDK Tools Revision 23.0.0
  1&gt;   [checkenv] Installed at C:\Program Files (x86)\Android\android-sdk
  1&gt;
  1&gt;  -setup:
  1&gt;       [echo] Project Name: MainActivity
  1&gt;    [gettype] Project Type: Android Library
  1&gt;
  1&gt;  -pre-clean:
  1&gt;
  1&gt;  clean:
  1&gt;
  1&gt;  BUILD SUCCESSFUL
  1&gt;  Total time: 0 seconds
  1&gt;  Your environment has been set up for using Node.js 0.12.2 (ia32) and npm.
  1&gt;  ------ 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&gt;  ------ Name from source package.json: vs-tac
  1&gt;  ------ Version from source package.json: 1.0.0
  1&gt;  ------ Package not currently installed globally.
  1&gt;  ------ Installing globally from source package. This could take a few minutes...
  1&gt;  &gt; edge@0.10.1 install C:\Users\billvo\AppData\Roaming\npm\node_modules\vs-tac\node_modules\edge
  1&gt;  &gt; node tools/install.js
  1&gt;  Success: platform check for edge.js: node.js ia32 v0.12.2
  1&gt;  npm WARN engine npm@1.3.4: wanted: {"node":"&gt;=0.6","npm":"1"} (current: {"node":"0.12.2","npm":"2.7.4"})
  1&gt;  npm WARN engine cordova-js@3.6.2: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
  1&gt;  npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree
  1&gt;  C:\Users\billvo\AppData\Roaming\npm\vs-tac-cli -&gt; C:\Users\billvo\AppData\Roaming\npm\node_modules\vs-tac\vs-tac-cli.cmd
  1&gt;  vs-tac@1.0.0 C:\Users\billvo\AppData\Roaming\npm\node_modules\vs-tac
  1&gt;  ├── rimraf@2.2.6
  1&gt;  ├── ncp@0.5.1
  1&gt;  ├── mkdirp@0.3.5
  1&gt;  ├── q@1.0.1
  1&gt;  ├── semver@2.3.1
  1&gt;  ├── adm-zip@0.4.4
  1&gt;  ├── fstream@0.1.28 (inherits@2.0.1, graceful-fs@3.0.8)
  1&gt;  ├── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
  1&gt;  ├── tar@0.1.20 (inherits@2.0.1, block-stream@0.0.8)
  1&gt;  ├── elementtree@0.1.6 (sax@0.3.5)
  1&gt;  ├── request@2.36.0 (forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, oauth-sign@0.3.0, tunnel-agent@0.4.1, json-stringify-safe@5.0.1, mime@1.2.11, node-uuid@1.4.3, tough-cookie@2.0.0, http-signature@0.10.1, hawk@1.0.0, form-data@0.1.4)
  1&gt;  ├── ripple-emulator@0.9.30 (connect-xcors@0.5.2, colors@0.6.0-1, open@0.0.3, accounting@0.4.1, request@2.12.0, moment@1.7.2, express@3.1.0)
  1&gt;  ├── edge@0.10.1 (edge-cs@0.2.7, nan@1.8.4)
  1&gt;  └── plugman@0.22.4 (q@0.9.7, underscore@1.4.4, nopt@1.0.10, rc@0.3.0, cordova-lib@0.21.6, npm@1.3.4)
  1&gt;  ------ npm install of vs-tac@1.0.0 from C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac completed.
  1&gt;  ------ Installing Cordova tools cordova@4.3.1 for project from npm. This could take a few minutes...
  1&gt;  npm WARN engine npm@1.3.4: wanted: {"node":"&gt;=0.6","npm":"1"} (current: {"node":"0.12.2","npm":"2.7.4"})
  1&gt;  npm WARN engine cordova-js@3.8.0: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
  1&gt;  npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
  1&gt;  npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree
  1&gt;  cordova@4.3.1 node_modules\cordova
  1&gt;  ├── underscore@1.7.0
  1&gt;  ├── q@1.0.1
  1&gt;  ├── nopt@3.0.1 (abbrev@1.0.7)
  1&gt;  └── cordova-lib@4.3.1 (valid-identifier@0.0.1, osenv@0.1.0, properties-parser@0.2.3, bplist-parser@0.0.6, mime@1.2.11, unorm@1.3.3, semver@2.0.11, dep-graph@1.1.0, shelljs@0.3.0, rc@0.5.2, through2@0.6.3, npmconf@0.1.16, xcode@0.6.7, elementtree@0.1.5, d8@0.4.4, request@2.47.0, glob@4.0.6, tar@1.0.2, init-package-json@1.7.1, plist@1.1.0, cordova-js@3.8.0, npm@1.3.4)
  1&gt;  ------ npm install of cordova@4.3.1 from npm completed.
  1&gt;  ------ Build Settings:
  1&gt;  ------ Build Settings:
  1&gt;  ------    platformConfigurationBldDir: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\Android\Debug
  1&gt;  ------    platformConfigurationBinDir: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bin\Android\Debug
  1&gt;  ------    buildCommand: prepare
  1&gt;  ------    platform: Android
  1&gt;  ------    cordovaPlatform: android
  1&gt;  ------    configuration: Debug
  1&gt;  ------    cordovaConfiguration: Debug
  1&gt;  ------    projectName: BlankCordovaApp2
  1&gt;  ------    projectSourceDir: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2
  1&gt;  ------    npmInstallDir: C:\Users\billvo\AppData\Roaming\npm
  1&gt;  ------    language: en-US
  1&gt;  ------ Platform android already exists
  1&gt;  ------ Updating plugins
  1&gt;  ------ Currently installed plugins:
  1&gt;  ------ Currently installed dependent plugins:
  1&gt;  ------ Currently configured plugins:
  1&gt;  ------ Preparing platform: android
  1&gt;  Generating config.xml from defaults for platform "android"
  1&gt;  Calling plugman.prepare for platform "android"
  1&gt;  Preparing android project
  1&gt;  Processing configuration changes for plugins.
  1&gt;  Iterating over installed plugins: []
  1&gt;  Writing out cordova_plugins.js...
  1&gt;  Wrote out Android application name to "BlankCordovaApp2"
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-land-hdpi\screen.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-land-ldpi\screen.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-land-mdpi\screen.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-land-xhdpi\screen.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-port-hdpi\screen.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-port-ldpi\screen.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-port-mdpi\screen.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-port-xhdpi\screen.png
  1&gt;  splash screens: [{"src":"res/screens/android/screen-hdpi-landscape.png","density":"land-hdpi","platform":"android"},{"src":"res/screens/android/screen-ldpi-landscape.png","density":"land-ldpi","platform":"android"},{"src":"res/screens/android/screen-mdpi-landscape.png","density":"land-mdpi","platform":"android"},{"src":"res/screens/android/screen-xhdpi-landscape.png","density":"land-xhdpi","platform":"android"},{"src":"res/screens/android/screen-hdpi-portrait.png","density":"port-hdpi","platform":"android"},{"src":"res/screens/android/screen-ldpi-portrait.png","density":"port-ldpi","platform":"android"},{"src":"res/screens/android/screen-mdpi-portrait.png","density":"port-mdpi","platform":"android"},{"src":"res/screens/android/screen-xhdpi-portrait.png","density":"port-xhdpi","platform":"android"}]
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\screens\android\screen-hdpi-landscape.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-land-hdpi\screen.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\screens\android\screen-ldpi-landscape.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-land-ldpi\screen.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\screens\android\screen-mdpi-landscape.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-land-mdpi\screen.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\screens\android\screen-xhdpi-landscape.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-land-xhdpi\screen.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\screens\android\screen-hdpi-portrait.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-port-hdpi\screen.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\screens\android\screen-ldpi-portrait.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-port-ldpi\screen.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\screens\android\screen-mdpi-portrait.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-port-mdpi\screen.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\screens\android\screen-xhdpi-portrait.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-port-xhdpi\screen.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-hdpi\icon.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-ldpi\icon.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-mdpi\icon.png
  1&gt;  deleted: C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-xhdpi\icon.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\icons\android\icon-36-ldpi.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-ldpi\icon.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\icons\android\icon-48-mdpi.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-mdpi\icon.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\icons\android\icon-72-hdpi.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-hdpi\icon.png
  1&gt;  copying image from C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\res\icons\android\icon-96-xhdpi.png to C:\Users\billvo\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\res\drawable-xhdpi\icon.png
  1&gt;  Wrote out Android package name to "io.cordova.myapp2a20d4"
  ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
  </code></pre>
  
  <p>I'm still not able to select the target device for debugging, regardless of whether I build for Android, Windows-AnyCPU, or Windows Phone 8.</p>
  
  <p><strong>UPDATE 3:</strong>  The images below show the Visual Studio 2015 components installed.  I tried adding Visual C++ Mobile Development, but saw no change in Cordova, so I removed it.</p>
  
  <p><a href="https://i.stack.imgur.com/UwGrF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UwGrF.png" alt="Add/Remove 1"></a></p>
  
  <p><a href="https://i.stack.imgur.com/R47yl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R47yl.png" alt="Add/Remove 2"></a></p>
  
  <p><a href="https://i.stack.imgur.com/LBgLg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LBgLg.png" alt="Add/Remove 3"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0vJSI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0vJSI.png" alt="Add/Remove 4"></a></p>
  
  <p><strong>UPDATE 4:</strong>  When I logged into a new local user account, I'm able to debug against the Visual Studio Emulator for Android.  This tells me that the problem is likely specific to my primary Windows account's profile.  I could probably fix this by deleting my profile and starting fresh.  </p>