Upgrading Windows Phone 8
This guide shows how to modify Windows Phone 8 projects, to upgrade from older versions of Cordova. Some of these instructions apply to projects created with an older set of command-line tools that precede the cordova CLI utility. See The Command-Line Interface for information how to update the version of the CLI. The following section shows how to upgrade from non-CLI and CLI projects.
Upgrading 3.6.0 Projects to 4.0.0
For non-CLI projects, run:
bin/update path/to/project
For CLI projects:
Update the
cordovaCLI version. See The Command-Line Interface.Run
cordova platform update wp8in your existing projects.
Upgrade to 3.2.0 from 3.1.0
For projects that were created with the cordova CLI:
Update the
cordovaCLI version. See The Command-Line Interface.Run
cordova platform update wp8
For projects not created with the cordova CLI, run:
bin\update <project_path>
Upgrade to 3.1.0 from 3.0.0
For projects that were created with the cordova CLI:
Update the
cordovaCLI version. See The Command-Line Interface.Run
cordova platform update wp8
For projects not created with the cordova CLI, run:
bin\update <project_path>
Upgrade to the CLI (3.0.0) from 2.9.0
Create a new Apache Cordova 3.0.0 project using the cordova CLI, as described in The Command-Line Interface.
Add your platforms to the cordova project, for example:
cordova platform add wp8.Copy the contents of the project's
wwwdirectory to thewwwdirectory at the root of the cordova project you just created.Copy or overwrite any native assets from your original project (
SplashScreen,ApplicationIcon, etc.), making sure to add any new files to the.csprojfile. The windows phone project builds inside theplatforms\wp8directory.Use the cordova CLI tool to install any plugins you need. Note that the CLI handles all core APIs as plugins, so they may need to be added. Only 3.0.0 plugins are compatible with the CLI.
Build and test.
Upgrade to 3.0.0 (non-CLI) from 2.x
In Visual Studio's Solution Explorer window:
Create a new Apache Cordova WP8 3.0.0 Project.
Copy the contents of the
wwwdirectory to the new project, and be sure these items are added to the VS project.Copy and overwrite any splash screen, or icon images.
Copy over any plugins from the
pluginsdirectory to the new project and ensure that they are also added to the VS project.Build and test.
NOTE: all core APIs are removed from Cordova version 3.0, and must be installed separately as plugins. For more information on how to re-enable these features in a non-CLI workflow, see Using Plugman to Manage Plugins.
© 2012, 2013, 2015 The Apache Software Foundation
Licensed under the Apache License 2.0.
https://cordova.apache.org/docs/en/6.x/guide/platforms/wp8/upgrade.html