Upgrading Cordova in Hybrid Visual Studio 2013 Applications

So, we are working on Visual CTP for hybrid applications. The version with CTP is 3.4.0 from Cordoba. There are a number of corrections that we need to perform with application testing and were made in version 3.5.0. Does anyone know how to upgrade a version of Cordova to version 3.5 inside Visual Studio (or even outside of Visual Studio) to work with the new CTP features?

thank

+4
source share
3 answers

Update Cordoba on Windows

Note. Before starting this process, make sure all instances of Visual Studio are closed.

  • Node.js nodejs.org.
  • npm. npm, :

    npm -v

    npm, ( ):

    npm install -g npm

  • . Cordova, :

    cordova -v

    , ( ):

    npm install -g cordova

  • vs-mda , . () ​​ %APPDATA%\npm\node_modules\cordova. vs-mda %APPDATA%\npm\node_modules\vs-mda\node_modules\cordova. .

    1. ( , ). 5.3.3 concat-map balanced-match. - , , .

npm install -g concat-map

npm install -g balanced-match

Mac

. , vs-mda-remote .

  • :

    sudo npm update -g cordova

  • vs-mda-remote , . () ​​ /usr/local/lib/node_modules/cordova. vs-mda-remote /usr/local/lib/node_modules/vs-mda-remote/node_modules/cordova. .
  • vs-mda-remote.

.

, clear cordova cache Visual Studio, . ( 4.0.0) %APPDATA%\npm\node_modules\vs-mda\node_modules\cordova

+3

. EXCEPT iOS. - - , . Android, Windows .. (, Windows), .

% APPDATA%\npm\ node_modules\vs-mda\node_modules\cordova\ "platforms.js". URL- , . URL ( github), , /, iOS 3.4.1. build, WP7 . . Visual Studio. bld. VS. CLEAN , BUILD/RUN it - , (create.bat) . , ...

+2

iOS:

  • Windows : npm install -g cordova
  • VS-MDA Cordova (% APPDATA%\npm\ node_modules\vs-mda\node_modules\cordova\node_modules\cordova-lib) , (% APPDATA%\npm\node_modules\cordova).
  • , , ( VS, bld, VS, Clean Solution, Build Solution). Visual Studio .
  • Mac : sudo npm update -g cordova
  • VS-MDA-Remote Cordova (/usr/local/lib/ node_modules/vs-mda-remote/node_modules/cordova) , (/USR//Library/node_modules/Cordova).
  • VS-MDA-Remote ( ) . Mac .

Visual Studio, (4.2.0 ), VS , .

4 2015 . RTM- , VS2015, iOS- . .

+2

Source: https://habr.com/ru/post/1545704/


All Articles