Cordova-android @ update in Visual Studio 2015 RTM

When I create a default Cordova TypeScript project, the default for the project is set to cordova-android@4.0.2

.

I am using the latest 4.1.0 and would like Visual Studio 2015 to use 4.1.0 by default.

Is it possible to install the cordova android version in Visual Studio?

I would prefer not to update cordova android for every project using the command line.

Instructions for updating Cordova Android 4.1.0 using command line: http://cordova.apache.org/announcements/2015/07/21/cordova-android-4.1.0.html

+2


source to share


1 answer


A short version of the description in the docs here looks like this:

In Visual Studio, right click on the config.xml file and select View Code and add the following below the root element in the config.xml file

<engine name="android" spec="4.1.0" />

      

Next, for projects where you have already built for the platform on your system, you will also need to uninstall the old version of the Cordova platform.



Open a command prompt and go to the root Cordova project (not the root of the solution) and enter the following commands:

npm install -g cordova
cordova platform remove android

      

The next time you build, you will now be on an updated version of the platform.

Note: platform removal is only required if you have built a version of the old platform on your computer and sometime this is one time.

+2


source







All Articles