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
- Download the plugin from GitHub as a .zip file
- Extract the contents of the .zip file and add them to your project
- In Solution Explorer, open the shortcut menu for your project, and then choose Add, New Folder. Name the folder plugins
- Add the code files for your plugin in a subfolder, matching the plugin's folder and file structure
- Build your app to add the plugin
Refer Manage Plugins for Your Multi-Device Hybrid App document for more detail on adding plugin