I am trying to install plugin for my cordova app in Visual Studio 2015 its giving error:
Couldn't download plugin.
If I tried to install it using CLI error is:
Current Directory is not cordova based project
Visual Studio and CordovaMicrosoft recently released a preview of the Visual Studio Tools for Apache Cordova, which is an add-in package for Visual Studio 2013 (or it comes built-in with Visual Studio 2015 Preview) that allows you build Cordova applications right out of the familiar Visual Studio environment.
As detailed in the “Project migration and upgrade reference for Visual Studio 2019 Preview” doc, support for Apache Cordova was removed in Visual Studio 2019 Preview.
When adding plugins or platforms, use the --save flag to add them to config. xml. Ex: cordova platform add android --save. Existing projects can use cordova plugin save and cordova platform save commands to save all previously installed plugins and platforms into your project's config.
run following command to install cordova globally
npm install -g cordova
Then create new cordova project using
cordova start project_name
Go to directory and Install plugin using
cordova plugin add org.apache.cordova.file
Copy Installed folder org.apache.cordova.file & paste into plugins folder in Visual Studio solution (Create plugins folder in root if not exist).
Update config file
<vs:plugin name="org.apache.cordova.file" version="1.3.1" />
OR
Simply Add Following Lines in Config.xml.
<vs:features>
<vs:feature>https://github.com/phonegap-build/PushPlugin.git</vs:feature>
</vs:features>
Build the project and observe bld/debug/plugins folder
One of two ways should work for you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With