run the following command to install cordova globally
npm install -g cordova
Then create a new cordova project using
cordova start project_name
Go to the directory and install the plugin using
cordova plugin add org.apache.cordova.file
Copy the installed org.apache.cordova.file folder and paste it into the plugins folder in the Visual Studio solution (create the plugins folder in the root if it does not exist).
Update configuration file
<vs:plugin name="org.apache.cordova.file" version="1.3.1" />
- Build a project
OR
Just add the following lines to Config.xml.
<vs:features>
<vs:feature>https://github.com/phonegap-build/PushPlugin.git</vs:feature>
</vs:features>
bld/debug/plugins