license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This guide shows how to modify Windows Phone projects, both versions 7 and 8, to upgrade from older versions of Cordova. Most of these instructions apply to projects created with an older set of command-line tools that precede the cordova
CLI utility. See The Cordova Command-line Interface for information how to update the version of the CLI. The following section shows how to upgrade from non-CLI projects.
cordova platform add wp7 wp8
.www
folder to the www
folder at the root of the cordova project you just created.SplashScreen
, ApplicationIcon
, etc.), making sure to add any new files to the .csproj
file. The windows phone project builds inside the platforms\wp7
or platforms\wp8
directory.In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.plugins
folder to the new project and ensure that they are also added to the VS project.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.
In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.plugins
folder to the new project and ensure that they are also added to the .csproj file.In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.plugins
folder to the new project and ensure that they are also added to the VS project.In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.cordova-2.7.0.js
file.plugins
folder to the new project and ensure that they are also added to the VS project.In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.cordova-2.6.0.js
file.plugins
folder to the new project and ensure that they are also added to the VS project.In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.cordova-2.5.0.js
file.plugins
folder to the new project and ensure that they are also added to the VS project.In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.cordova-2.4.0.js
file.plugins
folder to the new project and ensure that they are also added to the VS project.In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.cordova-2.3.0.js
file.plugins
folder to the new project and ensure that they are also added to the VS project.In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.cordova-2.2.0.js
file.plugins
folder to the new project and ensure that they are also added to the VS project.In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.cordova-2.1.0.js
file.plugins
folder to the new project and ensure that they are also added to the VS project.There have been considerable changes to the WP7 project structure in Apache Cordova 2.0.0 which make this upgrade a little more involved that the others. Essentially this is not an upgrade but creation of a new project and copy over of existing source files.
In Visual Studio's Solution Explorer window:
www
folder to the new project, and be sure these items are added to the VS project.cordova-2.0.0.js
file.plugins
folder to the new project and ensure that they are also added to the VS project.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.9.0.js
into your project. (Be sure it is marked as Content.)cordova-1.9.0.js
file.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.8.0.js
into your project. (Be sure it is marked as Content.)cordova-1.8.0.js
file.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.7.0.js
into your project. (Be sure it is marked as Content.)cordova-1.7.0.js
file.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.6.1.js
into your project. (Be sure it is marked as Content.)cordova-1.6.1.js
file.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.6.0.js
into your project. (Be sure it is marked as Content.)cordova-1.6.0.js
file.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.5.0.js
into your project. (Be sure it is marked as Content.)cordova-1.5.0.js
file.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.4.0.js
into your project. (Be sure it is marked as Content.)cordova-1.4.0.js
file.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.3.0.js
into your project. (Be sure it is marked as Content.)cordova-1.3.0.js
file.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.2.0.js
into your project. (Be sure it is marked as Content.)cordova-1.2.0.js
file.In Visual Studio's Solution Explorer window:
GapLib/WP7CordovaClassLib.dll
from your project.WP7CordovaClassLib
in the References folder.cordova-1.1.0.js
into your project. (Be sure it is marked as Content.)cordova-1.1.0.js
file.