How to add a plugin to the Visual Studio Cordova project


How can I add the remote (git) plugin to the cordova/phonegap project, created with Visual Studio phonegap template? I can't just change current directory to the VS project in CLI via cd and call add plugin ..., because it fails with "project directory could not be found". Thank you.

You can add plugin through Visual Studio also, following are steps to add custom plugin

  1. Download the plugin from GitHub as a .zip file
  2. Extract the contents of the .zip file and add them to your project
  3. In Solution Explorer, open the shortcut menu for your project, and then choose Add, New Folder. Name the folder plugins
  4. Add the code files for your plugin in a subfolder, matching the plugin's folder and file structure
  5. Build your app to add the plugin

Refer Manage Plugins for Your Multi-Device Hybrid App document for more detail on adding plugin