Search code examples
cordovavisual-studio-2013cordova-pluginsvisual-studio-cordova

Installing Plugins to Visual Studio Cordova project


I have a new blank cordova project that I would like to install a plugin into,

http://plugreg.com/plugin/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin

I've tried the following,

  1. open up cmd
  2. browse to application folder, containing .sln file
  3. install cordova using npm
  4. run 'cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git'

I receive the following error,

'Current working directory is not a Cordova-based project.'

Any idea how I get this to work, assuming that I can that is?


Solution

  • Visual Studio Tools for Apache Cordova CPT3.0 added feature to add custom plugin, now you can use config.xml to add plugin from Git.

    You can get more detail to install Visual Studio Tools for Apache Cordova CPT3.0 here. CPT3.0 requires to uninstall CPT2.0 and install Visual Studio Update 4 before installing CPT3.0

    enter image description here