You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2013/05/23 23:58:22 UTC
[25/50] Add WP7 and WP8 platform files.
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/templates/standalone/www/css/index.css
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/templates/standalone/www/css/index.css b/lib/cordova-wp7/templates/standalone/www/css/index.css
new file mode 100644
index 0000000..1d34d88
--- /dev/null
+++ b/lib/cordova-wp7/templates/standalone/www/css/index.css
@@ -0,0 +1,115 @@
+/*
+ * 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.
+ */
+* {
+ -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
+ -webkit-text-size-adjust: none; /* prevent WebKit from resizing text to fit */
+ -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
+ -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
+}
+
+body {
+ background-color:#E4E4E4;
+ background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
+ background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
+ background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
+ background-image:-webkit-gradient(
+ linear,
+ left top,
+ left bottom,
+ color-stop(0, #A7A7A7),
+ color-stop(0.51, #E4E4E4)
+ );
+ background-attachment:fixed;
+ font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
+ font-size:12px;
+ height:100%;
+ margin:0px;
+ padding:0px;
+ text-transform:uppercase;
+ width:100%;
+}
+
+/* Portrait layout (default) */
+.app {
+ background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
+ position:absolute; /* position in the center of the screen */
+ left:50%;
+ top:50%;
+ height:50px; /* text area height */
+ width:225px; /* text area width */
+ text-align:center;
+ padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
+ margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
+ /* offset horizontal: half of text area width */
+}
+
+/* Landscape layout (with min-width) */
+@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
+ .app {
+ background-position:left center;
+ padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
+ margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
+ /* offset horizontal: half of image width and text area width */
+ }
+}
+
+h1 {
+ font-size:24px;
+ font-weight:normal;
+ margin:0px;
+ overflow:visible;
+ padding:0px;
+ text-align:center;
+}
+
+.event {
+ border-radius:4px;
+ -webkit-border-radius:4px;
+ color:#FFFFFF;
+ font-size:12px;
+ margin:0px 30px;
+ padding:2px 0px;
+}
+
+.event.listening {
+ background-color:#333333;
+ display:block;
+}
+
+.event.received {
+ background-color:#4B946A;
+ display:none;
+}
+
+@keyframes fade {
+ from { opacity: 1.0; }
+ 50% { opacity: 0.4; }
+ to { opacity: 1.0; }
+}
+
+@-webkit-keyframes fade {
+ from { opacity: 1.0; }
+ 50% { opacity: 0.4; }
+ to { opacity: 1.0; }
+}
+
+.blink {
+ animation:fade 3000ms infinite;
+ -webkit-animation:fade 3000ms infinite;
+}
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/templates/standalone/www/img/logo.png
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/templates/standalone/www/img/logo.png b/lib/cordova-wp7/templates/standalone/www/img/logo.png
new file mode 100644
index 0000000..9519e7d
Binary files /dev/null and b/lib/cordova-wp7/templates/standalone/www/img/logo.png differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/templates/standalone/www/index.html
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/templates/standalone/www/index.html b/lib/cordova-wp7/templates/standalone/www/index.html
new file mode 100644
index 0000000..31f61f4
--- /dev/null
+++ b/lib/cordova-wp7/templates/standalone/www/index.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<!--
+ 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.
+-->
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta name="format-detection" content="telephone=no" />
+ <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
+ <link rel="stylesheet" type="text/css" href="css/index.css" />
+ <title>Hello World</title>
+ </head>
+ <body>
+ <div class="app">
+ <h1>Apache Cordova</h1>
+ <div id="deviceready" class="blink">
+ <p class="event listening">Connecting to Device</p>
+ <p class="event received">Device is Ready</p>
+ </div>
+ </div>
+ <script type="text/javascript" src="cordova-2.7.0.js"></script>
+ <script type="text/javascript" src="js/index.js"></script>
+ <script type="text/javascript">
+ app.initialize();
+ </script>
+ </body>
+</html>
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/templates/standalone/www/js/index.js
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/templates/standalone/www/js/index.js b/lib/cordova-wp7/templates/standalone/www/js/index.js
new file mode 100644
index 0000000..bf02e98
--- /dev/null
+++ b/lib/cordova-wp7/templates/standalone/www/js/index.js
@@ -0,0 +1,49 @@
+/*
+ * 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.
+ */
+var app = {
+ // Application Constructor
+ initialize: function() {
+ this.bindEvents();
+ },
+ // Bind Event Listeners
+ //
+ // Bind any events that are required on startup. Common events are:
+ // `load`, `deviceready`, `offline`, and `online`.
+ bindEvents: function() {
+ document.addEventListener('deviceready', this.onDeviceReady, false);
+ },
+ // deviceready Event Handler
+ //
+ // The scope of `this` is the event. In order to call the `receivedEvent`
+ // function, we must explicitly call `app.receivedEvent(...);`
+ onDeviceReady: function() {
+ app.receivedEvent('deviceready');
+ },
+ // Update DOM on a Received Event
+ receivedEvent: function(id) {
+ var parentElement = document.getElementById(id);
+ var listeningElement = parentElement.querySelector('.listening');
+ var receivedElement = parentElement.querySelector('.received');
+
+ listeningElement.setAttribute('style', 'display:none;');
+ receivedElement.setAttribute('style', 'display:block;');
+
+ console.log('Received Event: ' + id);
+ }
+};
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/templates/vs/MyTemplateStandAlone.vstemplate
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/templates/vs/MyTemplateStandAlone.vstemplate b/lib/cordova-wp7/templates/vs/MyTemplateStandAlone.vstemplate
new file mode 100644
index 0000000..34b949d
--- /dev/null
+++ b/lib/cordova-wp7/templates/vs/MyTemplateStandAlone.vstemplate
@@ -0,0 +1,115 @@
+<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
+ <TemplateData>
+ <Name>CordovaWP7_2_7_0</Name>
+ <Description>Cordova 2.7.0 for Windows Phone 7.5 using the Cordova source code directly.</Description>
+ <ProjectType>CSharp</ProjectType>
+ <ProjectSubType>
+ </ProjectSubType>
+ <SortOrder>1000</SortOrder>
+ <CreateNewFolder>true</CreateNewFolder>
+ <DefaultName>CordovaWP7_2_7_0</DefaultName>
+ <ProvideDefaultName>true</ProvideDefaultName>
+ <LocationField>Enabled</LocationField>
+ <EnableLocationBrowseButton>true</EnableLocationBrowseButton>
+ <Icon>__TemplateIcon.png</Icon>
+ <PreviewImage>__PreviewImage.jpg</PreviewImage>
+ </TemplateData>
+ <TemplateContent>
+ <Project TargetFileName="CordovaAppProj.csproj" File="CordovaAppProj.csproj" ReplaceParameters="true">
+ <ProjectItem ReplaceParameters="true" TargetFileName="App.xaml">App.xaml</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="App.xaml.cs">App.xaml.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="false" TargetFileName="ApplicationIcon.png">ApplicationIcon.png</ProjectItem>
+ <ProjectItem ReplaceParameters="false" TargetFileName="Background.png">Background.png</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="BuildManifestProcessor.js">BuildManifestProcessor.js</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="config.xml">config.xml</ProjectItem>
+ <Folder Name="cordovalib" TargetFolderName="cordovalib">
+ <ProjectItem ReplaceParameters="true" TargetFileName="BrowserMouseHelper.cs">BrowserMouseHelper.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="CommandFactory.cs">CommandFactory.cs</ProjectItem>
+ <Folder Name="Commands" TargetFolderName="Commands">
+ <ProjectItem ReplaceParameters="true" TargetFileName="BaseCommand.cs">BaseCommand.cs</ProjectItem>
+ </Folder>
+ <ProjectItem ReplaceParameters="true" TargetFileName="ConfigHandler.cs">ConfigHandler.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="CordovaCommandCall.cs">CordovaCommandCall.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="CordovaView.xaml">CordovaView.xaml</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="CordovaView.xaml.cs">CordovaView.xaml.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="DOMStorageHelper.cs">DOMStorageHelper.cs</ProjectItem>
+ <Folder Name="JSON" TargetFolderName="JSON">
+ <ProjectItem ReplaceParameters="true" TargetFileName="JsonHelper.cs">JsonHelper.cs</ProjectItem>
+ </Folder>
+ <ProjectItem ReplaceParameters="true" TargetFileName="NativeExecution.cs">NativeExecution.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="OrientationHelper.cs">OrientationHelper.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="PluginResult.cs">PluginResult.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="ScriptCallback.cs">ScriptCallback.cs</ProjectItem>
+ </Folder>
+ <ProjectItem ReplaceParameters="true" TargetFileName="CordovaSourceDictionary.xml">CordovaSourceDictionary.xml</ProjectItem>
+ <Folder Name="Images" TargetFolderName="Images">
+ <ProjectItem ReplaceParameters="false" TargetFileName="appbar.back.rest.png">appbar.back.rest.png</ProjectItem>
+ <ProjectItem ReplaceParameters="false" TargetFileName="appbar.close.rest.png">appbar.close.rest.png</ProjectItem>
+ <ProjectItem ReplaceParameters="false" TargetFileName="appbar.feature.video.rest.png">appbar.feature.video.rest.png</ProjectItem>
+ <ProjectItem ReplaceParameters="false" TargetFileName="appbar.next.rest.png">appbar.next.rest.png</ProjectItem>
+ <ProjectItem ReplaceParameters="false" TargetFileName="appbar.save.rest.png">appbar.save.rest.png</ProjectItem>
+ <ProjectItem ReplaceParameters="false" TargetFileName="appbar.stop.rest.png">appbar.stop.rest.png</ProjectItem>
+ </Folder>
+ <ProjectItem ReplaceParameters="true" TargetFileName="MainPage.xaml">MainPage.xaml</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="MainPage.xaml.cs">MainPage.xaml.cs</ProjectItem>
+ <Folder Name="Plugins" TargetFolderName="Plugins">
+ <ProjectItem ReplaceParameters="true" TargetFileName="Accelerometer.cs">Accelerometer.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="AudioFormatsHelper.cs">AudioFormatsHelper.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="AudioPlayer.cs">AudioPlayer.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="Battery.cs">Battery.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="Camera.cs">Camera.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="Capture.cs">Capture.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="Compass.cs">Compass.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="Contacts.cs">Contacts.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="DebugConsole.cs">DebugConsole.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="Device.cs">Device.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="File.cs">File.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="FileTransfer.cs">FileTransfer.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="GeoLocation.cs">GeoLocation.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="Globalization.cs">Globalization.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="ImageExifHelper.cs">ImageExifHelper.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="InAppBrowser.cs">InAppBrowser.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="Media.cs">Media.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="MimeTypeMapper.cs">MimeTypeMapper.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="NetworkStatus.cs">NetworkStatus.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="Notification.cs">Notification.cs</ProjectItem>
+ <Folder Name="UI" TargetFolderName="UI">
+ <ProjectItem ReplaceParameters="true" TargetFileName="AudioCaptureTask.cs">AudioCaptureTask.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="AudioRecorder.xaml">AudioRecorder.xaml</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="AudioRecorder.xaml.cs">AudioRecorder.xaml.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="ImageCapture.xaml">ImageCapture.xaml</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="ImageCapture.xaml.cs">ImageCapture.xaml.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="NotificationBox.xaml">NotificationBox.xaml</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="NotificationBox.xaml.cs">NotificationBox.xaml.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="VideoCaptureTask.cs">VideoCaptureTask.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="VideoRecorder.xaml">VideoRecorder.xaml</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="VideoRecorder.xaml.cs">VideoRecorder.xaml.cs</ProjectItem>
+ </Folder>
+ </Folder>
+ <Folder Name="Properties" TargetFolderName="Properties">
+ <ProjectItem ReplaceParameters="true" TargetFileName="AppManifest.xml">AppManifest.xml</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="AssemblyInfo.cs">AssemblyInfo.cs</ProjectItem>
+ <ProjectItem ReplaceParameters="true" TargetFileName="WMAppManifest.xml">WMAppManifest.xml</ProjectItem>
+ </Folder>
+ <Folder Name="resources" TargetFolderName="resources">
+ <ProjectItem ReplaceParameters="false" TargetFileName="notification-beep.wav">notification-beep.wav</ProjectItem>
+ </Folder>
+ <Folder Name="Service References" TargetFolderName="Service References" />
+ <ProjectItem ReplaceParameters="false" TargetFileName="SplashScreenImage.jpg">SplashScreenImage.jpg</ProjectItem>
+ <ProjectItem ReplaceParameters="false" TargetFileName="VERSION">VERSION</ProjectItem>
+ <Folder Name="www" TargetFolderName="www">
+ <ProjectItem ReplaceParameters="true" TargetFileName="cordova-2.7.0.js">cordova-2.7.0.js</ProjectItem>
+ <Folder Name="css" TargetFolderName="css">
+ <ProjectItem ReplaceParameters="true" TargetFileName="index.css">index.css</ProjectItem>
+ </Folder>
+ <Folder Name="img" TargetFolderName="img">
+ <ProjectItem ReplaceParameters="false" TargetFileName="logo.png">logo.png</ProjectItem>
+ </Folder>
+ <ProjectItem ReplaceParameters="true" TargetFileName="index.html">index.html</ProjectItem>
+ <Folder Name="js" TargetFolderName="js">
+ <ProjectItem ReplaceParameters="true" TargetFileName="index.js">index.js</ProjectItem>
+ </Folder>
+ </Folder>
+ </Project>
+ </TemplateContent>
+</VSTemplate>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/templates/vs/description.txt
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/templates/vs/description.txt b/lib/cordova-wp7/templates/vs/description.txt
new file mode 100644
index 0000000..089ad81
--- /dev/null
+++ b/lib/cordova-wp7/templates/vs/description.txt
@@ -0,0 +1,4 @@
+CordovaStarter
+
+Starter project for building a Cordova app for Windows Phone version: 2.6.0
+
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/templates/vs/pg_templateIcon.png
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/templates/vs/pg_templateIcon.png b/lib/cordova-wp7/templates/vs/pg_templateIcon.png
new file mode 100644
index 0000000..75c17c7
Binary files /dev/null and b/lib/cordova-wp7/templates/vs/pg_templateIcon.png differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/templates/vs/pg_templatePreview.jpg
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/templates/vs/pg_templatePreview.jpg b/lib/cordova-wp7/templates/vs/pg_templatePreview.jpg
new file mode 100644
index 0000000..1d72941
Binary files /dev/null and b/lib/cordova-wp7/templates/vs/pg_templatePreview.jpg differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tests/README.md
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tests/README.md b/lib/cordova-wp7/tests/README.md
new file mode 100644
index 0000000..cdf9516
--- /dev/null
+++ b/lib/cordova-wp7/tests/README.md
@@ -0,0 +1,7 @@
+Tests Have Moved
+===
+
+Tests now live in the MobileSpec repo at:
+https://github.com/apache/incubator-cordova-mobile-spec
+
+You will need to create a new project, and add the mobile-spec files to it to run the tests.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/buildjs.bat
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/buildjs.bat b/lib/cordova-wp7/tooling/scripts/buildjs.bat
new file mode 100644
index 0000000..28d2423
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/buildjs.bat
@@ -0,0 +1,2 @@
+@echo off
+cscript "%~dp0\buildjs.js" %* //nologo
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/buildjs.js
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/buildjs.js b/lib/cordova-wp7/tooling/scripts/buildjs.js
new file mode 100644
index 0000000..b5c51ad
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/buildjs.js
@@ -0,0 +1,209 @@
+/*
+ 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.
+*/
+
+var fso = WScript.CreateObject('Scripting.FileSystemObject'),
+ shell = WScript.CreateObject("shell.application"),
+ wscript_shell = WScript.CreateObject("WScript.Shell");
+
+var args = WScript.Arguments,
+ //Root folder of cordova-wp7 (i.e C:\Cordova\cordova-wp7)
+ ROOT = WScript.ScriptFullName.split('\\tooling\\', 1),
+ //Sub folder containing templates
+ TEMPLATES_PATH = '\\templates',
+ //Sub folder for standalone project
+ STANDALONE_PATH = TEMPLATES_PATH + '\\standalone',
+ //Sub folder containing framework
+ FRAMEWORK_PATH = '\\framework',
+ //Subfolder containing example project
+ EXAMPLE_PATH = '\\example',
+ //Git Repositories
+ CORDOVA_JS = "https://git-wip-us.apache.org/repos/asf/cordova-js.git",
+ // get version
+ VERSION = read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,''),
+ BUILD_DESTINATION;
+
+function Log(msg) {
+ WScript.StdOut.WriteLine(msg);
+}
+
+// help function
+function Usage()
+{
+ Log("");
+ Log("This Script builds the given virsion of cordova.js and injects it into this or the given cordova-wp7 ");
+ Log("");
+ Log("Usage: buildjs [ Version PathTOCordovaWP7 ]");
+ Log(" Version : The version of cordova.js to build (must already be tagged)");
+ Log(" PathTOCordovaWP7 : The path to the cordova directory where the new cordova.js will go.");
+ Log("examples:");
+ Log(" buildjs 2.5.0rc1 //Puts cordova-2.5.0rc1 as the cordova.js in the current working directory");
+ Log(" buildjs 2.4.0 C:\\Users\\anonymous\\Desktop\\cordova-wp7 //Puts cordova-2.4.0.js in the given directory");
+ Log(" buildjs //Builds the version of cordova.js from the root folder and adds it to the working directory repo");
+ Log("");
+}
+
+// returns the contents of a file
+function read(filename) {
+ //Log('Reading in ' + filename);
+ if(fso.FileExists(filename))
+ {
+ var f=fso.OpenTextFile(filename, 1,2);
+ var s=f.ReadAll();
+ f.Close();
+ return s;
+ }
+ else
+ {
+ Log('Cannot read non-existant file : ' + filename);
+ WScript.Quit(1);
+ }
+ return null;
+}
+
+// executes a commmand in the shell
+function exec(command) {
+ var oShell=wscript_shell.Exec(command);
+ while (oShell.Status === 0) {
+ WScript.sleep(100);
+ }
+}
+
+// executes a commmand in the shell
+function exec_verbose(command) {
+ //Log("Command: " + command);
+ var oShell=wscript_shell.Exec(command);
+ while (oShell.Status === 0) {
+ //Wait a little bit so we're not super looping
+ WScript.sleep(100);
+ //Print any stdout output from the script
+ if(!oShell.StdOut.AtEndOfStream) {
+ var line = oShell.StdOut.ReadLine();
+ Log(line);
+ }
+ }
+ //Check to make sure our scripts did not encounter an error
+ if(!oShell.StdErr.AtEndOfStream)
+ {
+ var err_line = oShell.StdErr.ReadAll();
+ WScript.StdErr.WriteLine(err_line);
+ WScript.Quit(1);
+ }
+}
+
+function build_js(path)
+{
+ if(fso.FolderExists(path + '\\temp'))
+ {
+ fso.DeleteFolder(path + '\\temp', true);
+ }
+ fso.CreateFolder(path + '\\temp');
+ wscript_shell.CurrentDirectory = path + '\\temp';
+
+ Log('\tCloning js tagged with ' + VERSION + '...');
+ exec('%comspec% /c git clone ' + CORDOVA_JS + ' && cd cordova-js && git fetch && git checkout ' + VERSION );
+ if(!fso.FolderExists(path + '\\temp\\cordova-js'))
+ {
+ WScript.StdErr.WriteLine("ERROR: Failed to clone cordova-js. Aborting...");
+ WScript.Quit(1);
+ }
+ wscript_shell.CurrentDirectory = path + '\\temp\\cordova-js';
+ Log("Building Cordova.js...");
+
+ exec_verbose('%comspec% /c jake build');
+ if(!fso.FolderExists(path + '\\temp\\cordova-js\\pkg'))
+ {
+ WScript.StdErr.WriteLine("ERROR: Failed to build cordova-js. Aborting...");
+ WScript.Quit(1);
+ }
+
+ //copy the javascript wherever it needs to go.
+ wscript_shell.CurrentDirectory = path + '\\temp\\cordova-js\\pkg';
+ exec('%comspec% /c copy /Y cordova.windowsphone.js ' + path + STANDALONE_PATH + '\\www\\cordova-' + VERSION + '.js');
+ exec('%comspec% /c copy /Y cordova.windowsphone.js ' + path + EXAMPLE_PATH + '\\www\\cordova-' + VERSION + '.js');
+
+ //TODO: Delete old cordova.js (done in reversion.js)
+
+ Log("SUCESS");
+}
+
+function set_path(some_arg)
+{
+ if(some_arg.indexOf('-p:')!= -1)
+ {
+ var path = some_arg.split('-p:')[1];
+ if(fso.FolderExists(path) && fso.FolderExists(path + '\\tooling'))
+ {
+ BUILD_DESTINATION = path;
+ return true;
+ }
+ else
+ {
+ Log("ERROR: The given path is not a cordova-wp7 repo, or");
+ Log(" does not exist. If your trying to reversion a");
+ Log(" cordova repo other then this one, please provide");
+ Log(" it's path in the form: -p:C:\\Path\\to\\repo");
+ WScript.Quit(1);
+ }
+
+ }
+ return false;
+}
+
+Log("");
+
+if(args.Count() > 1)
+{
+ set_path(args(1));
+}
+
+if(args.Count() > 0)
+{
+ //Support help flags
+ if(args(0).indexOf("--help") > -1 ||
+ args(0).indexOf("/?") > -1 )
+ {
+ Usage();
+ WScript.Quit(1);
+ }
+
+ if(args(0).match(/(\d+)[.](\d+)[.](\d+)(rc\d)?/))
+ {
+ VERSION = args(0);
+ if(args.Count() == 1)
+ {
+ BUILD_DESTINATION = ROOT;
+ }
+ }
+ else if(set_path(arg(0))) {} //do nothing
+ else
+ {
+ Log("The provided version number is invalid, please provide");
+ Log(" a version number in the format Major.Minor.Fix[rc#]");
+ Usage();
+ WScript.Quit(1);
+ }
+}
+else
+{
+ BUILD_DESTINATION = ROOT;
+}
+
+//If we haven't quit by here, build the damn javascript!
+Log("Creating js for " + BUILD_DESTINATION);
+build_js(BUILD_DESTINATION);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/dist.bat
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/dist.bat b/lib/cordova-wp7/tooling/scripts/dist.bat
new file mode 100644
index 0000000..a1c0e1d
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/dist.bat
@@ -0,0 +1,2 @@
+@echo off
+cscript "%~dp0\dist.js" %* //nologo
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/dist.js
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/dist.js b/lib/cordova-wp7/tooling/scripts/dist.js
new file mode 100644
index 0000000..4303202
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/dist.js
@@ -0,0 +1,217 @@
+/*
+ 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.
+*/
+
+
+/*************************************************/
+/**************** REQUIREMENTS *****************/
+/*************************************************/
+/*
+Paths:
+ - path to git.exe -> C:\msysgit\bin
+ - path to msbuild -> C:\Windows\Microsoft.NET\Framework\v4.0.30319
+Famework
+ - .NET 4.0
+ - Windows phone SDKs
+
+
+/************ Globals ********/
+
+var fso = WScript.CreateObject('Scripting.FileSystemObject'),
+ wscript_shell = WScript.CreateObject("WScript.Shell");
+
+//Set up directory structure of current release
+ //arguments passed in
+var args = WScript.Arguments,
+ //Root folder of cordova-wp7 (i.e C:\Cordova\cordova-wp7)
+ ROOT = WScript.ScriptFullName.split('\\tooling\\', 1),
+ // tooling scripts
+ SCRIPTS = '\\tooling\\scripts';
+ //Get version number
+ VERSION=read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,'');
+
+//Destination to build to
+var BUILD_DESTINATION;
+//current script that is running
+var current_script = "dist";
+// replace the directory
+var replace = false;
+
+
+/*************************************************/
+/**************** FUNCTIONS ********************/
+/*************************************************/
+
+
+// help function
+function Usage() {
+ Log("");
+ Log("This is a command line tool for building new releases. It will package a new release");
+ Log(" of a cordova-wp7 project, reversioning it to match the VERSION file in the root directory.");
+ Log("Usage: dist [ <NEW_PATH_FOR_BUILD> | -f ] ");
+ Log(" -f : force tool to reversion the current repositoy.");
+ Log(" <NEW_PATH_FOR_BUILD> : path to create the new reversioned repositoy in.");
+ Log("");
+}
+
+// logs messaged to stdout and stderr
+function Log(msg, error) {
+ if (error) {
+ WScript.StdErr.WriteLine(msg);
+ }
+ else {
+ WScript.StdOut.WriteLine(msg);
+ }
+}
+
+// returns the contents of a file
+function read(filename) {
+ //Log('Reading in ' + filename);
+ if(fso.FileExists(filename)) {
+ var f=fso.OpenTextFile(filename, 1,2);
+ var s=f.ReadAll();
+ f.Close();
+ return s;
+ }
+ else {
+ Log('Cannot read non-existant file : ' + filename, true);
+ WScript.Quit(1);
+ }
+ return null;
+}
+
+// executes a commmand in the shell
+function exec(command) {
+ Log("Command: " + command);
+ var oShell=wscript_shell.Exec(command);
+ while (oShell.Status === 0) {
+ //Wait a little bit so we're not super looping
+ WScript.sleep(100);
+ //Print any stdout output from the script
+ if(!oShell.StdOut.AtEndOfStream) {
+ var line = oShell.StdOut.ReadLine();
+ Log(line);
+ }
+ }
+ //Check to make sure our scripts did not encounter an error
+ if(!oShell.StdErr.AtEndOfStream) {
+ var err_line = oShell.StdErr.ReadAll();
+ Log(err_line, true);
+ Log("ERROR: Could not complete distribution, failed while running: " + current_script, true);
+ WScript.Quit(1);
+ }
+}
+
+function space() {
+ Log("");
+ Log("*****************************************************");
+ Log("");
+}
+
+
+/*************************************************/
+/************** MAIN SCRIPT ********************/
+/*************************************************/
+
+if (args.Count() > 0) {
+ if (args.Count() == 1) {
+ // support help flags
+ if (args(0).indexOf("--help") > -1 ||
+ args(0).indexOf("/?") > -1 ) {
+ Usage();
+ WScript.Quit(1);
+ }
+ else if (args(0) == '-f') {
+ BUILD_DESTINATION = ROOT;
+ replace = true;
+ }
+ else {
+ BUILD_DESTINATION = args(0);
+ }
+
+ }
+ else if (args.Count() == 2) {
+ if (args(0) == '-f') {
+ replace = true;
+ BUILD_DESTINATION = args(1);
+ } else {
+ BUILD_DESTINATION = args(0);
+ if (args(1) == '-f') {
+ replace = true;
+ }
+ else {
+ Log('WARNING : "' + args(1) + '" is not regognized, attempting to continue distribution.');
+ }
+ }
+ }
+ else {
+ Log("Error : too many arguments provided.", true);
+ WScript.Quit(1);
+ }
+
+}
+else {
+ Usage();
+ WScript.Quit(1);
+}
+
+
+/*************************************************/
+/****************** Step 1 *********************/
+/*************************************************/
+/** - Copy source code to new directory **/
+/*************************************************/
+if (!replace) {
+ current_script = "new.js";
+ exec('cscript ' + ROOT + SCRIPTS + '\\new.js ' + BUILD_DESTINATION + ' //nologo');
+ space();
+}
+
+/*************************************************/
+/****************** Step 2 *********************/
+/*************************************************/
+/** - Retag everything with new version numbers **/
+/** - Delete any generated files and cordova.js **/
+/** - Rebuild dll **/
+/*************************************************/
+current_script = "reversion.js";
+exec('cscript ' + BUILD_DESTINATION + SCRIPTS + '\\reversion.js ' + VERSION + ' //nologo');
+space();
+
+/*************************************************/
+/****************** Step 3 *********************/
+/*************************************************/
+/** - Download tagged version of cordova.js **/
+/** - build cordova.js **/
+/** - windows.cordova.js -> templates + example **/
+/*************************************************/
+current_script = "buildjs.js";
+exec('cscript ' + BUILD_DESTINATION + SCRIPTS + '\\buildjs.js //nologo');
+space();
+
+/*************************************************/
+/****************** Step 5 *********************/
+/*************************************************/
+/** - Build templates **/
+/** - Zip templates **/
+/** - inject into Visual Studio **/
+/*************************************************/
+current_script = "package.js";
+exec('cscript ' + BUILD_DESTINATION + SCRIPTS + '\\package.js //nologo');
+space();
+Log("Distribution Complete.");
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/new.bat
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/new.bat b/lib/cordova-wp7/tooling/scripts/new.bat
new file mode 100644
index 0000000..cb08e2e
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/new.bat
@@ -0,0 +1,2 @@
+@echo off
+cscript "%~dp0\new.js" %* //nologo
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/new.js
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/new.js b/lib/cordova-wp7/tooling/scripts/new.js
new file mode 100644
index 0000000..c17dc94
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/new.js
@@ -0,0 +1,151 @@
+/*
+ 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.
+*/
+
+var fso = WScript.CreateObject('Scripting.FileSystemObject'),
+ shell = WScript.CreateObject("shell.application"),
+ wscript_shell = WScript.CreateObject("WScript.Shell");
+
+var args = WScript.Arguments,
+ //Root folder of cordova-wp7 (i.e C:\Cordova\cordova-wp7)
+ ROOT = WScript.ScriptFullName.split('\\tooling\\', 1),
+ //Sub folder containing templates
+ TEMPLATES_PATH = '\\templates',
+ //Sub folder containing framework
+ FRAMEWORK_PATH = '\\framework',
+ //Subfolder containing example project
+ EXAMPLE_PATH = '\\example';
+// git repo for cordova-wp7
+var CORDOVA_WP7 = 'https://git-wip-us.apache.org/repos/asf/cordova-wp7.git';
+//Destination to build to
+var BUILD_DESTINATION;
+// pull the project down from github?
+var GET_NEW = false;
+
+// help function
+function Usage()
+{
+ WScript.StdOut.WriteLine("");
+ WScript.StdOut.WriteLine("Usage: new [ PathToDestinationFolder ]");
+ WScript.StdOut.WriteLine(" PathToDestinationFolder : Folder you wish to be created for a new cordova-wp7 repo");
+ WScript.StdOut.WriteLine("examples:");
+ WScript.StdOut.WriteLine(" new C:\\Users\\anonymous\\Desktop\\cordova-wp7");
+ WScript.StdOut.WriteLine("");
+}
+
+// returns the contents of a file
+function read(filename) {
+ //WScript.StdOut.WriteLine('Reading in ' + filename);
+ if(fso.FileExists(filename))
+ {
+ var f=fso.OpenTextFile(filename, 1,2);
+ var s=f.ReadAll();
+ f.Close();
+ return s;
+ }
+ else
+ {
+ WScript.StdErr.WriteLine('Cannot read non-existant file : ' + filename);
+ WScript.Quit(1);
+ }
+ return null;
+}
+
+// executes a commmand in the shell
+function exec(command) {
+ var oShell=wscript_shell.Exec(command);
+ while (oShell.Status === 0) {
+ WScript.sleep(100);
+ }
+}
+
+function copy_to(path)
+{
+ //Copy everything over to BUILD_DESTINATION
+ var dest = shell.NameSpace(path);
+ WScript.StdOut.WriteLine("Copying files to build directory...");
+
+ /** copy by file instead? (just what we need)**/
+ dest.CopyHere(ROOT + "\\bin", 4|20);
+ dest.CopyHere(ROOT + EXAMPLE_PATH, 4|20); //Should mostly be copied from standalone
+ dest.CopyHere(ROOT + FRAMEWORK_PATH, 4|20);
+ dest.CopyHere(ROOT + TEMPLATES_PATH, 4|20);
+ dest.CopyHere(ROOT + "\\tests", 4|20);
+ dest.CopyHere(ROOT + "\\tooling", 4|20);
+ dest.CopyHere(ROOT + "\\.gitignore", 4|20);
+ dest.CopyHere(ROOT + "\\LICENSE", 4|20);
+ dest.CopyHere(ROOT + "\\NOTICE", 4|20);
+ dest.CopyHere(ROOT + "\\README.md", 4|20);
+ dest.CopyHere(ROOT + "\\VERSION", 4|20);
+}
+
+WScript.StdOut.WriteLine("");
+
+if(args.Count() > 0)
+{
+ if(fso.FolderExists(args(0)))
+ {
+ WScript.StdErr.WriteLine("The given directory already exists!");
+ Usage();
+ WScript.Quit(1);
+ }
+ else
+ {
+ BUILD_DESTINATION = args(0);
+
+ }
+
+ if(!GET_NEW) {
+
+ if(fso.FolderExists(BUILD_DESTINATION))
+ {
+ WScript.StdErr.WriteLine("The given directory already exists!");
+ Usage();
+ WScript.Quit(1);
+ }
+ else
+ {
+ BUILD_DESTINATION = args(0);
+ }
+
+ // set up file structure
+ fso.CreateFolder(BUILD_DESTINATION);
+ // copy nessisary files
+ copy_to(BUILD_DESTINATION);
+ }
+ else
+ {
+ wscript_shell.CurrentDirectory = arg(0) + '\\..';
+ BUILD_DESTINATION = wscript_shell.CurrentDirectory + '\\cordova-wp7';
+
+ WScript.StdOut.WriteLine('Cloning cordova-wp7 from git, build destination now ' + BUILD_DESTINATION);
+ if(fso.FolderExists(BUILD_DESTINATION))
+ {
+ WScript.StdErr.WriteLine("Could not clone cordova-wp7 from git because it's directory already exists!");
+ WScript.Quit(1);
+ }
+
+ exec('git clone ' + CORDOVA_WP7); //git fetch --tags && git checkout?
+
+ }
+}
+else
+{
+ Usage();
+ WScript.Quit(1);
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/package.bat
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/package.bat b/lib/cordova-wp7/tooling/scripts/package.bat
new file mode 100644
index 0000000..c00551e
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/package.bat
@@ -0,0 +1,2 @@
+@echo off
+cscript "%~dp0\package.js" %* //nologo
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/package.js
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/package.js b/lib/cordova-wp7/tooling/scripts/package.js
new file mode 100644
index 0000000..f3970a8
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/package.js
@@ -0,0 +1,213 @@
+/*
+ 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.
+*/
+
+var fso = WScript.CreateObject('Scripting.FileSystemObject'),
+ shell = WScript.CreateObject("shell.application"),
+ wscript_shell = WScript.CreateObject("WScript.Shell");
+
+var args = WScript.Arguments,
+ // root folder of cordova-wp7 (i.e C:\Cordova\cordova-wp7)
+ ROOT = WScript.ScriptFullName.split('\\tooling\\', 1),
+ // sub folder containing templates
+ TEMPLATES_PATH = '\\templates',
+ // sub folder for standalone project
+ STANDALONE_PATH = TEMPLATES_PATH + '\\standalone',
+ // sub folder containing framework
+ FRAMEWORK_PATH = '\\framework',
+ // subfolder containing example project
+ EXAMPLE_PATH = '\\example',
+ // get version number
+ VERSION=read(ROOT+'\\VERSION').replace(/\r\n/,'').replace(/\n/,''),
+ BASE_VERSION = VERSION.split('rc', 1) + ".0";
+
+// destination directory to package
+var BUILD_DESTINATION;
+// add templates to visual studio?
+var ADD_TO_VS = false;
+// build the dll?
+var BUILD_DLL = false;
+
+function Log(msg) { WScript.StdOut.WriteLine(msg); }
+
+// help function
+function Usage()
+{
+ Log("");
+ Log("Usage: package [ PathToCordovaWP7 ]");
+ Log(" PathToCordovaWP7 : Cordova-wp7 repo you wish to package for release");
+ Log("examples:");
+ Log(" package C:\\Users\\anonymous\\Desktop\\cordova-wp7");
+ Log(" package // packages current cordova directory");
+ Log("");
+}
+
+// returns the contents of a file
+function read(filename) {
+ //Log('Reading in ' + filename);
+ if(fso.FileExists(filename))
+ {
+ var f=fso.OpenTextFile(filename, 1,2);
+ var s=f.ReadAll();
+ f.Close();
+ return s;
+ }
+ else
+ {
+ Log('ERROR: Cannot read non-existant file : ' + filename);
+ WScript.Quit(1);
+ }
+ return null;
+}
+
+// executes a commmand in the shell
+function exec(command) {
+ var oShell=wscript_shell.Exec(command);
+ while (oShell.Status === 0) {
+ WScript.sleep(100);
+ }
+}
+
+// executes a commmand in the shell
+function exec_verbose(command) {
+ Log("Command: " + command);
+ var oShell=wscript_shell.Exec(command);
+ while (oShell.Status === 0) {
+ //Wait a little bit so we're not super looping
+ WScript.sleep(100);
+ //Print any stdout output from the script
+ if(!oShell.StdOut.AtEndOfStream) {
+ var line = oShell.StdOut.ReadLine();
+ Log(line);
+ }
+ }
+ //Check to make sure our scripts did not encounter an error
+ if(!oShell.StdErr.AtEndOfStream)
+ {
+ var err_line = oShell.StdErr.ReadAll();
+ WScript.StdErr.WriteLine(err_line);
+ WScript.Quit(1);
+ }
+}
+
+// packages templates into .zip
+function package_templates()
+{
+ Log("Creating template .zip files ...");
+
+ var template_path = BUILD_DESTINATION + '\\CordovaWP7_' + VERSION.replace(/\./g, '_') + '.zip';
+ if(fso.FileExists(template_path))
+ {
+ fso.DeleteFile(template_path);
+ }
+
+ exec('%comspec% /c copy /Y ' + BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\MyTemplateStandAlone.vstemplate ' + BUILD_DESTINATION + STANDALONE_PATH + '\\MyTemplate.vstemplate');
+ exec('%comspec% /c copy /Y ' + BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\pg_templateIcon.png ' + BUILD_DESTINATION + STANDALONE_PATH + '\\__TemplateIcon.png');
+ exec('%comspec% /c copy /Y ' + BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\pg_templatePreview.jpg ' + BUILD_DESTINATION + STANDALONE_PATH + '\\__PreviewImage.jpg');
+ exec('%comspec% /c copy /Y ' + BUILD_DESTINATION + '\\VERSION ' + BUILD_DESTINATION + STANDALONE_PATH);
+
+ exec_verbose('cscript ' + BUILD_DESTINATION + '\\tooling\\scripts\\win-zip.js ' + template_path + ' ' + BUILD_DESTINATION + STANDALONE_PATH + '\\ //nologo');
+
+
+ if(ADD_TO_VS)
+ {
+ var template_dir = wscript_shell.ExpandEnvironmentStrings("%USERPROFILE%") + '\\Documents\\Visual Studio 2012\\Templates\\ProjectTemplates';
+ if(fso.FolderExists(template_dir ))
+ {
+ dest = shell.NameSpace(template_dir);
+ dest.CopyHere(template_path, 4|20);
+ }
+ else
+ {
+ Log("WARNING: Could not find template directory in Visual Studio,\n you can manually copy over the template .zip files.");
+ }
+ }
+}
+
+// builds the new cordova dll and copys it to the full template (only done because of the version referance in Device.cs)
+function build_dll()
+{
+ Log("Packaging .dll ...");
+ // move to framework directory
+ wscript_shell.CurrentDirectory = BUILD_DESTINATION + FRAMEWORK_PATH;
+ // build .dll in Release
+ exec_verbose('msbuild /p:Configuration=Release;VersionNumber=' + VERSION + ';BaseVersionNumber=' + BASE_VERSION);
+ //Check if file dll was created
+ if(!fso.FileExists(BUILD_DESTINATION + FRAMEWORK_PATH + '\\Bin\\Release\\WPCordovaClassLib.dll'))
+ {
+ WScript.StdErr.WriteLine('ERROR: MSBuild failed to create .dll.');
+ WScript.Quit(1);
+ }
+
+ Log("SUCESS");
+}
+
+// delete any unnessisary files when finished
+function cleanUp() {
+
+ if(fso.FileExists(BUILD_DESTINATION + STANDALONE_PATH + '\\MyTemplate.vstemplate')) {
+ fso.DeleteFile(BUILD_DESTINATION + STANDALONE_PATH + '\\MyTemplate.vstemplate');
+ }
+ if(fso.FileExists(BUILD_DESTINATION + STANDALONE_PATH + '\\__PreviewImage.jpg')) {
+ fso.DeleteFile(BUILD_DESTINATION + STANDALONE_PATH + '\\__PreviewImage.jpg');
+ }
+ if(fso.FileExists(BUILD_DESTINATION + STANDALONE_PATH + '\\__TemplateIcon.png')) {
+ fso.DeleteFile(BUILD_DESTINATION + STANDALONE_PATH + '\\__TemplateIcon.png');
+ }
+ //Add any other cleanup here
+}
+
+
+Log("");
+
+if(args.Count() > 0)
+{
+ //Support help flags
+ if(args(0).indexOf("--help") > -1 ||
+ args(0).indexOf("/?") > -1 )
+ {
+ Usage();
+ WScript.Quit(1);
+ }
+
+ if(fso.FolderExists(args(0)) && fso.FolderExists(args(0) + '\\tooling'))
+ {
+ BUILD_DESTINATION = args(0);
+ }
+ else
+ {
+ Log("ERROR: The given directory is not a cordova-wp7 repo.");
+ Usage();
+ WScript.Quit(1);
+
+ }
+}
+else
+{
+ BUILD_DESTINATION = ROOT;
+}
+
+// build dll for full template
+if (BUILD_DLL) {
+ build_dll();
+}
+
+// build/package the templates
+package_templates(BUILD_DESTINATION);
+
+cleanUp();
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/reversion.bat
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/reversion.bat b/lib/cordova-wp7/tooling/scripts/reversion.bat
new file mode 100644
index 0000000..b35ab08
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/reversion.bat
@@ -0,0 +1,2 @@
+@echo off
+cscript "%~dp0\reversion.js" %* //nologo
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/reversion.js
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/reversion.js b/lib/cordova-wp7/tooling/scripts/reversion.js
new file mode 100644
index 0000000..3b42fc4
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/reversion.js
@@ -0,0 +1,277 @@
+/*
+ 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.
+*/
+
+
+/************ Globals ********/
+
+var fso = WScript.CreateObject('Scripting.FileSystemObject'),
+ shell = WScript.CreateObject("shell.application"),
+ wscript_shell = WScript.CreateObject("WScript.Shell");
+
+//Set up directory structure of current release
+ //arguments passed in
+var args = WScript.Arguments,
+ //Root folder of cordova-wp7 (i.e C:\Cordova\cordova-wp7)
+ ROOT = WScript.ScriptFullName.split('\\tooling\\', 1),
+ //Sub folder containing templates
+ TEMPLATES_PATH = '\\templates',
+ //Sub folder for standalone project
+ STANDALONE_PATH = TEMPLATES_PATH + '\\standalone',
+ //Sub folder containing framework
+ FRAMEWORK_PATH = '\\framework',
+ //Subfolder containing example project
+ EXAMPLE_PATH = '\\example',
+ //Path to cordovalib folder, containing source for .dll
+ CORDOVA_LIB = STANDALONE_PATH + '\\cordovalib',
+ //Get version number
+ VERSION='',
+ BASE_VERSION = '';
+
+//Destination to build to
+var BUILD_DESTINATION;
+
+// help function
+function Usage()
+{
+ WScript.StdOut.WriteLine("");
+ WScript.StdOut.WriteLine("Usage: reversion [ Version PathTOCordovaWP7 ]");
+ WScript.StdOut.WriteLine(" Version : The new version for codova-wp7");
+ WScript.StdOut.WriteLine(" PathTOCordovaWP7 : The path to the cordova directory being reversioned.");
+ WScript.StdOut.WriteLine("examples:");
+ WScript.StdOut.WriteLine(" reversion 2.5.0rc1 //Reversions the current working directory");
+ WScript.StdOut.WriteLine(" reversion 2.5.0 C :\\Users\\anonymous\\Desktop\\cordova-wp7");
+ WScript.StdOut.WriteLine("");
+}
+
+var ForReading = 1, ForWriting = 2, ForAppending = 8;
+var TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0;
+
+// returns the contents of a file
+function read(filename) {
+ //WScript.Echo('Reading in ' + filename);
+ if(fso.FileExists(filename))
+ {
+ var f=fso.OpenTextFile(filename, 1,2);
+ var s=f.ReadAll();
+ f.Close();
+ return s;
+ }
+ else
+ {
+ WScript.StdErr.WriteLine('Cannot read non-existant file : ' + filename);
+ WScript.Quit(1);
+ }
+ return null;
+}
+
+// writes the contents to the specified file
+function write(filename, contents) {
+ var f=fso.OpenTextFile(filename, ForWriting, TristateTrue);
+ f.Write(contents);
+ f.Close();
+}
+
+// replaces the matches of regexp with replacement
+function replaceInFile(filename, regexp, replacement) {
+ //WScript.Echo("Replaceing with "+replacement+ " in:");
+ var text = read(filename).replace(regexp,replacement);
+ //WScript.Echo(text);
+ write(filename,text);
+}
+
+// executes a commmand in the shell
+function exec(command) {
+ var oShell=wscript_shell.Exec(command);
+ while (oShell.Status === 0) {
+ WScript.sleep(100);
+ }
+}
+
+// executes a commmand in the shell
+function exec_verbose(command) {
+ //WScript.StdOut.WriteLine("Command: " + command);
+ var oShell=wscript_shell.Exec(command);
+ while (oShell.Status === 0) {
+ //Wait a little bit so we're not super looping
+ WScript.sleep(100);
+ //Print any stdout output from the script
+ if(!oShell.StdOut.AtEndOfStream) {
+ var line = oShell.StdOut.ReadLine();
+ WScript.StdOut.WriteLine(line);
+ }
+ }
+ //Check to make sure our scripts did not encounter an error
+ if(!oShell.StdErr.AtEndOfStream)
+ {
+ var err_line = oShell.StdErr.ReadAll();
+ WScript.StdErr.WriteLine(err_line);
+ WScript.Quit(1);
+ }
+}
+
+function updateVersionNumbers() {
+ WScript.StdOut.WriteLine("Updating version numbers....");
+ var version_regex = /(\d+)[.](\d+)[.](\d+)(rc\d)?/;
+ replaceInFile(BUILD_DESTINATION + '\\VERSION', version_regex, VERSION);
+ // replace assembaly versions in framework
+ var framework_regex = /Description\(\"(\d+)[.](\d+)[.](\d+)(rc\d)?\"\)\]/; //Will match ("x.x.x[rcx]")]
+ replaceInFile(BUILD_DESTINATION + FRAMEWORK_PATH + "\\Properties\\AssemblyInfo.cs", framework_regex, "Description(\"" + VERSION + "\")]");
+ framework_regex = /Version\(\"(\d+)[.](\d+)[.](\d+)[.](\d+)\"\)\]/g;
+ replaceInFile(BUILD_DESTINATION + FRAMEWORK_PATH + "\\Properties\\AssemblyInfo.cs", framework_regex, "Version(\"" + BASE_VERSION + "\")]");
+
+ // update standalone project
+ exec('%comspec% /c copy /Y /V ' + BUILD_DESTINATION + "\\VERSION " + BUILD_DESTINATION + STANDALONE_PATH + "\\VERSION");
+ var cordova_regex = /cordova-(\d+)[.](\d+)[.](\d+)(rc\d)?/g; //Matches *first* cordova-x.x.x[rcx] (just ad g at end to make global)
+ replaceInFile(BUILD_DESTINATION + STANDALONE_PATH + '\\CordovaAppProj.csproj', cordova_regex, "cordova-" + VERSION);
+ replaceInFile(BUILD_DESTINATION + STANDALONE_PATH + '\\www\\index.html', cordova_regex, "cordova-" + VERSION);
+ version_regex = /return\s*\"(\d+)[.](\d+)[.](\d+)(rc\d)?/; //Matches return "x.x.x[rcx]
+
+ WScript.StdOut.WriteLine("path = " + BUILD_DESTINATION + CORDOVA_LIB + '\\Plugins\\Device.cs');
+ replaceInFile(BUILD_DESTINATION + CORDOVA_LIB + '\\..\\Plugins\\Device.cs', version_regex, "return \"" + VERSION);
+
+ // update example proj
+ replaceInFile(BUILD_DESTINATION + EXAMPLE_PATH + '\\CordovaExample.csproj', cordova_regex, "cordova-" + VERSION);
+ version_regex = /VERSION\s*\=\s*\'(\d+)[.](\d+)[.](\d+)(rc\d)?/; //Matches VERSION = x.x.x[rcx]
+ replaceInFile(BUILD_DESTINATION + EXAMPLE_PATH + '\\www\\cordova-current.js', version_regex, "VERSION = \'" + VERSION);
+
+ // update template discription
+ version_regex = /Cordova\s*(\d+)[.](\d+)[.](\d+)(rc\d)?\s*Windows/g; //Matches version: x.x.x[rcx]
+ replaceInFile(BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\description.txt', version_regex, "Cordova " + VERSION + " Windows");
+
+ // update .vstemplate files for the template zips.
+ var name_regex = /CordovaWP7[_](\d+)[_](\d+)[_](\d+)(rc\d)?/g;
+ var discript_regex = /Cordova\s*(\d+)[.](\d+)[.](\d+)(rc\d)?/;
+
+ replaceInFile(BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\MyTemplateStandAlone.vstemplate', name_regex, 'CordovaWP7_' + VERSION.replace(/\./g, '_'));
+ replaceInFile(BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\MyTemplateStandAlone.vstemplate', discript_regex, "Cordova " + VERSION);
+ replaceInFile(BUILD_DESTINATION + TEMPLATES_PATH + '\\vs\\MyTemplateStandAlone.vstemplate', cordova_regex, "cordova-" + VERSION);
+}
+
+// delete all cordova.js and generated files (templates) from old version numbers
+function cleanup()
+{
+ WScript.StdOut.WriteLine("Cleanup");
+ // remove old template .zip files
+ if(fso.FileExists(BUILD_DESTINATION + '\\*.zip'))
+ {
+ fso.DeleteFile(BUILD_DESTINATION + '\\*.zip');
+ }
+ // remove any generated framework files
+ if(fso.FolderExists(BUILD_DESTINATION + FRAMEWORK_PATH + '\\Bin'))
+ {
+ fso.DeleteFolder(BUILD_DESTINATION + FRAMEWORK_PATH + '\\Bin');
+ }
+ if(fso.FolderExists(BUILD_DESTINATION + FRAMEWORK_PATH + '\\obj'))
+ {
+ fso.DeleteFolder(BUILD_DESTINATION + FRAMEWORK_PATH + '\\obj');
+ }
+ // remove any generated CordovaDeploy
+ if(fso.FolderExists(BUILD_DESTINATION + '\\tooling\\CordovaDeploy\\CordovaDeploy\\bin'))
+ {
+ fso.DeleteFolder(BUILD_DESTINATION + '\\tooling\\CordovaDeploy\\CordovaDeploy\\bin');
+ }
+ if(fso.FolderExists(BUILD_DESTINATION + '\\tooling\\CordovaDeploy\\CordovaDeploy\\obj'))
+ {
+ fso.DeleteFolder(BUILD_DESTINATION + '\\tooling\\CordovaDeploy\\CordovaDeploy\\obj');
+ }
+ //remove old template .zip files
+ WScript.Echo(BUILD_DESTINATION);
+ var root_folder = shell.NameSpace(BUILD_DESTINATION + '\\').Items();
+ for(var i = 0; i < root_folder.Count; i++)
+ {
+ if(root_folder.Item(i).Name.match(/CordovaWP7[_](\d+)[_](\d+)[_](\d+)(rc\d)?/))
+ {
+ fso.DeleteFile(BUILD_DESTINATION + '\\' + root_folder.Item(i).Name);
+ }
+ }
+ // remove old cordova.js
+ var example_www = shell.NameSpace(BUILD_DESTINATION + EXAMPLE_PATH + '\\www').Items();
+ for(i = 0; i < example_www.Count; i++)
+ {
+ if(example_www.Item(i).Name.match(/cordova\-(\d+)[.](\d+)[.](\d+)(rc\d)?[.]js/))
+ {
+ fso.DeleteFile(BUILD_DESTINATION + EXAMPLE_PATH + '\\www\\' + example_www.Item(i).Name);
+ }
+ }
+
+ var standalone_www = shell.NameSpace(BUILD_DESTINATION + STANDALONE_PATH + '\\www').Items();
+ for(i = 0; i < standalone_www.Count; i++)
+ {
+ if(standalone_www.Item(i).Name.match(/cordova\-(\d+)[.](\d+)[.](\d+)(rc\d)?[.]js/))
+ {
+ fso.DeleteFile(BUILD_DESTINATION + STANDALONE_PATH + '\\www\\' + standalone_www.Item(i).Name);
+ }
+ }
+}
+
+
+WScript.StdOut.WriteLine("");
+
+if(args.Count() > 1)
+{
+ if(fso.FolderExists(args(1)) && fso.FolderExists(args(1) + '\\tooling'))
+ {
+ BUILD_DESTINATION = args(1);
+ }
+ else
+ {
+ WScript.StdErr.WriteLine("The given path is not a cordova-wp7 repo, if");
+ WScript.StdErr.WriteLine(" your trying to reversion a cordova-wp7 repo");
+ WScript.StdErr.WriteLine(" other then this one, please provide its path.");
+ Usage();
+ WScript.Quit(1);
+ }
+}
+
+if(args.Count() > 0)
+{
+ //Support help flags
+ if(args(0).indexOf("--help") > -1 ||
+ args(0).indexOf("/?") > -1 )
+ {
+ Usage();
+ WScript.Quit(1);
+ }
+
+ if(args(0).match(/(\d+)[.](\d+)[.](\d+)(rc\d)?/))
+ {
+ VERSION = args(0);
+ BASE_VERSION = VERSION.split('rc', 1) + ".0";
+ if(args.Count() < 2)
+ {
+ BUILD_DESTINATION = ROOT;
+ }
+ // remove old cordova.js files and any generated files
+ cleanup();
+ // update version numbers
+ updateVersionNumbers();
+ }
+ else
+ {
+ WScript.StdOut.WriteLine("The version number is invalid, please provide");
+ WScript.StdOut.WriteLine(" a version number in the format Major.Minor.Fix[rc#]");
+ Usage();
+ WScript.Quit(1);
+ }
+}
+else
+{
+ Usage();
+ WScript.Quit(1);
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp7/tooling/scripts/win-zip.js
----------------------------------------------------------------------
diff --git a/lib/cordova-wp7/tooling/scripts/win-zip.js b/lib/cordova-wp7/tooling/scripts/win-zip.js
new file mode 100644
index 0000000..3d8dc1a
--- /dev/null
+++ b/lib/cordova-wp7/tooling/scripts/win-zip.js
@@ -0,0 +1,32 @@
+/*
+ * Script for zipping the contents of a directory.
+ */
+
+// get commman line arguments
+var objArgs = WScript.Arguments;
+var zipPath = objArgs(0);
+var sourcePath = objArgs(1);
+
+
+// create empty ZIP file and open for adding
+var fso = new ActiveXObject("Scripting.FileSystemObject");
+var file = fso.CreateTextFile(zipPath, true);
+
+// create twenty-two byte "fingerprint" for .zip
+file.write("PK");
+file.write(String.fromCharCode(5));
+file.write(String.fromCharCode(6));
+file.write('\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0');
+file.Close();
+
+// open .zip foder and copy contents of sourcePath
+var objShell = new ActiveXObject("shell.application");
+var zipFolder = objShell.NameSpace(zipPath);
+var sourceItems = objShell.NameSpace(sourcePath).items();
+if (zipFolder !== null) {
+ zipFolder.CopyHere(sourceItems, 4|20|16);
+ WScript.Sleep(4000);
+}
+else {
+ WScript.StdErr.WriteLine('Failed to create .zip file.');
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/LICENSE
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/LICENSE b/lib/cordova-wp8/LICENSE
new file mode 100644
index 0000000..6a504ba
--- /dev/null
+++ b/lib/cordova-wp8/LICENSE
@@ -0,0 +1,12 @@
+
+Licensed 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.
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/NOTICE
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/NOTICE b/lib/cordova-wp8/NOTICE
new file mode 100644
index 0000000..c38e7d7
--- /dev/null
+++ b/lib/cordova-wp8/NOTICE
@@ -0,0 +1,5 @@
+Apache Cordova
+Copyright 2012 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org)
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/README.md
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/README.md b/lib/cordova-wp8/README.md
new file mode 100644
index 0000000..8d772b3
--- /dev/null
+++ b/lib/cordova-wp8/README.md
@@ -0,0 +1,42 @@
+Apache Cordova for Windows Phone 8
+===
+
+Apache Cordova WP8 is a .net application library that lets you create Apache Cordova applications targeting Windows Phone 8 devices.
+Apache Cordova based applications are, at the core, an application written with web technology: HTML, CSS and JavaScript.
+
+Requires
+---
+
+- Windows Phone SDK 8 [http://www.microsoft.com/en-us/download/details.aspx?id=35471]
+
+
+Getting Started
+---
+
+- copy the file templates/CordovaStarter-x.x.x.zip to the folder : \My Documents\Visual Studio 2012\Templates\ProjectTemplates\
+ - if you have just installed VisualStudio, you should launch it once to create this folder
+ - if you prefer, you may add the project instead to the "Silverlight for Windows Phone" subfolder of "Visual C#". This is up to you, and only affects where the project template is shown when creating a new project. Also, You may need to create this folder.
+- Launch Visual Studio 2012 and select to create a new project
+ - CordovaStarter should be listed as an option, give your new project a name
+ - Note: The description will let you know the version of Cordova you are targetting, if you have multiple templates.
+ - If you do not see it, you may have to select the top level 'Visual C#' to see it
+- Build and Run it!
+
+
+Known Problem Areas
+---
+
+Many of the Media APIs will not function as expected when debugging while connect to the device with the Zune software.
+To get around this, you need to use the Windows Phone Connect tool. For details, please check out this [MSDN blog article](http://blogs.msdn.com/b/jaimer/archive/2010/11/03/tips-for-debugging-wp7-media-apps-with-wpconnect.aspx).
+
+
+BUGS?
+-----
+File them at Apache Incubator
+https://issues.apache.org/jira/browse/CB
+
+Further Reading
+---
+
+- [http://docs.phonegap.com](http://docs.phonegap.com)
+- [http://wiki.phonegap.com](http://wiki.phonegap.com)
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/VERSION
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/VERSION b/lib/cordova-wp8/VERSION
new file mode 100644
index 0000000..9aa3464
--- /dev/null
+++ b/lib/cordova-wp8/VERSION
@@ -0,0 +1 @@
+2.7.0
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/framework/Images/appbar.back.rest.png
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/framework/Images/appbar.back.rest.png b/lib/cordova-wp8/framework/Images/appbar.back.rest.png
new file mode 100644
index 0000000..4bc2b92
Binary files /dev/null and b/lib/cordova-wp8/framework/Images/appbar.back.rest.png differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/framework/Images/appbar.close.rest.png
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/framework/Images/appbar.close.rest.png b/lib/cordova-wp8/framework/Images/appbar.close.rest.png
new file mode 100644
index 0000000..8166a1c
Binary files /dev/null and b/lib/cordova-wp8/framework/Images/appbar.close.rest.png differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/framework/Images/appbar.feature.video.rest.png
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/framework/Images/appbar.feature.video.rest.png b/lib/cordova-wp8/framework/Images/appbar.feature.video.rest.png
new file mode 100644
index 0000000..baff565
Binary files /dev/null and b/lib/cordova-wp8/framework/Images/appbar.feature.video.rest.png differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/framework/Images/appbar.next.rest.png
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/framework/Images/appbar.next.rest.png b/lib/cordova-wp8/framework/Images/appbar.next.rest.png
new file mode 100644
index 0000000..ed577d7
Binary files /dev/null and b/lib/cordova-wp8/framework/Images/appbar.next.rest.png differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/framework/Images/appbar.save.rest.png
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/framework/Images/appbar.save.rest.png b/lib/cordova-wp8/framework/Images/appbar.save.rest.png
new file mode 100644
index 0000000..d49940e
Binary files /dev/null and b/lib/cordova-wp8/framework/Images/appbar.save.rest.png differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/framework/Images/appbar.stop.rest.png
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/framework/Images/appbar.stop.rest.png b/lib/cordova-wp8/framework/Images/appbar.stop.rest.png
new file mode 100644
index 0000000..4dd724f
Binary files /dev/null and b/lib/cordova-wp8/framework/Images/appbar.stop.rest.png differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/framework/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/framework/Properties/AssemblyInfo.cs b/lib/cordova-wp8/framework/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..4ed7003
--- /dev/null
+++ b/lib/cordova-wp8/framework/Properties/AssemblyInfo.cs
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("WPCordovaClassLib")]
+[assembly: AssemblyDescription("2.7.0")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Apache Cordova")]
+[assembly: AssemblyProduct("WPCordovaClassLib")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("633ee7ad-9a75-4b68-96e9-281528c50275")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("2.7.0.0")]
+[assembly: AssemblyFileVersion("2.7.0.0")]
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/0fea2dd2/lib/cordova-wp8/framework/WPCordovaClassLib.csproj
----------------------------------------------------------------------
diff --git a/lib/cordova-wp8/framework/WPCordovaClassLib.csproj b/lib/cordova-wp8/framework/WPCordovaClassLib.csproj
new file mode 100644
index 0000000..55da878
--- /dev/null
+++ b/lib/cordova-wp8/framework/WPCordovaClassLib.csproj
@@ -0,0 +1,313 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ 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.
+-->
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>10.0.20506</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{FC6A1A70-892D-46AD-9E4A-9793F72AF780}</ProjectGuid>
+ <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>WPCordovaClassLib</RootNamespace>
+ <AssemblyName>WPCordovaClassLib</AssemblyName>
+ <AssemblyVersion>$(BaseVersionNumber)</AssemblyVersion>
+ <AssemblyFileVersion>$(BaseVersionNumber)</AssemblyFileVersion>
+ <AssemblyDescription>$(VersionNumber)</AssemblyDescription>
+ <TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
+ <SilverlightVersion>
+ </SilverlightVersion>
+ <TargetFrameworkProfile>
+ </TargetFrameworkProfile>
+ <TargetFrameworkIdentifier>WindowsPhone</TargetFrameworkIdentifier>
+ <SilverlightApplication>false</SilverlightApplication>
+ <ValidateXaml>true</ValidateXaml>
+ <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
+ <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>Bin\Debug</OutputPath>
+ <DefineConstants>TRACE;DEBUG;SILVERLIGHT;WINDOWS_PHONE;CORDOVA_CLASSLIB</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <Prefer32Bit>false</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>Bin\Release</OutputPath>
+ <DefineConstants>TRACE;DEBUG;SILVERLIGHT;WINDOWS_PHONE;CORDOVA_CLASSLIB</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>
+ </DocumentationFile>
+ <Prefer32Bit>false</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>Bin\x86\Debug</OutputPath>
+ <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <DebugType>full</DebugType>
+ <PlatformTarget>
+ </PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
+ <Prefer32Bit>false</Prefer32Bit>
+ <Optimize>false</Optimize>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <OutputPath>Bin\x86\Release</OutputPath>
+ <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoStdLib>true</NoStdLib>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>
+ </PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
+ <Prefer32Bit>false</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>Bin\ARM\Debug</OutputPath>
+ <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <DebugType>full</DebugType>
+ <PlatformTarget>
+ </PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
+ <Prefer32Bit>false</Prefer32Bit>
+ <Optimize>false</Optimize>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
+ <OutputPath>Bin\ARM\Release</OutputPath>
+ <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoStdLib>true</NoStdLib>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>
+ </PlatformTarget>
+ <ErrorReport>prompt</ErrorReport>
+ <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
+ <Prefer32Bit>false</Prefer32Bit>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="..\templates\standalone\cordovalib\BrowserMouseHelper.cs">
+ <Link>CordovaLib\BrowserMouseHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\CommandFactory.cs">
+ <Link>CordovaLib\CommandFactory.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\Commands\BaseCommand.cs">
+ <Link>CordovaLib\Commands\BaseCommand.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\ConfigHandler.cs">
+ <Link>CordovaLib\ConfigHandler.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\CordovaCommandCall.cs">
+ <Link>CordovaLib\CordovaCommandCall.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\CordovaView.xaml.cs">
+ <Link>CordovaLib\CordovaView.xaml.cs</Link>
+ <DependentUpon>CordovaView.xaml</DependentUpon>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\DOMStorageHelper.cs">
+ <Link>CordovaLib\DOMStorageHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\JSON\JsonHelper.cs">
+ <Link>CordovaLib\JSON\JsonHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\NativeExecution.cs">
+ <Link>CordovaLib\NativeExecution.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\OrientationHelper.cs">
+ <Link>CordovaLib\OrientationHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\PluginResult.cs">
+ <Link>CordovaLib\PluginResult.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\cordovalib\ScriptCallback.cs">
+ <Link>CordovaLib\ScriptCallback.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Accelerometer.cs">
+ <Link>CordovaLib\Plugins\Accelerometer.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\AudioFormatsHelper.cs">
+ <Link>CordovaLib\Plugins\AudioFormatsHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\AudioPlayer.cs">
+ <Link>CordovaLib\Plugins\AudioPlayer.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Battery.cs">
+ <Link>CordovaLib\Plugins\Battery.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Camera.cs">
+ <Link>CordovaLib\Plugins\Camera.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Capture.cs">
+ <Link>CordovaLib\Plugins\Capture.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Compass.cs">
+ <Link>CordovaLib\Plugins\Compass.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Contacts.cs">
+ <Link>CordovaLib\Plugins\Contacts.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\DebugConsole.cs">
+ <Link>CordovaLib\Plugins\DebugConsole.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Device.cs">
+ <Link>CordovaLib\Plugins\Device.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\File.cs">
+ <Link>CordovaLib\Plugins\File.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\FileTransfer.cs">
+ <Link>CordovaLib\Plugins\FileTransfer.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\GeoLocation.cs">
+ <Link>CordovaLib\Plugins\GeoLocation.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Globalization.cs">
+ <Link>CordovaLib\Plugins\Globalization.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\ImageExifHelper.cs">
+ <Link>CordovaLib\Plugins\ImageExifHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\InAppBrowser.cs">
+ <Link>CordovaLib\Plugins\InAppBrowser.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Media.cs">
+ <Link>CordovaLib\Plugins\Media.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\MimeTypeMapper.cs">
+ <Link>CordovaLib\Plugins\MimeTypeMapper.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\NetworkStatus.cs">
+ <Link>CordovaLib\Plugins\NetworkStatus.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\Notification.cs">
+ <Link>CordovaLib\Plugins\Notification.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\UI\AudioCaptureTask.cs">
+ <Link>CordovaLib\Plugins\UI\AudioCaptureTask.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\UI\AudioRecorder.xaml.cs">
+ <Link>CordovaLib\Plugins\UI\AudioRecorder.xaml.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\UI\ImageCapture.xaml.cs">
+ <Link>CordovaLib\Plugins\UI\ImageCapture.xaml.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\UI\NotificationBox.xaml.cs">
+ <Link>CordovaLib\Plugins\UI\NotificationBox.xaml.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\UI\VideoCaptureTask.cs">
+ <Link>CordovaLib\Plugins\UI\VideoCaptureTask.cs</Link>
+ </Compile>
+ <Compile Include="..\templates\standalone\Plugins\UI\VideoRecorder.xaml.cs">
+ <Link>CordovaLib\Plugins\UI\VideoRecorder.xaml.cs</Link>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\templates\standalone\cordovalib\resources\notification-beep.wav">
+ <Link>CordovaLib\resources\notification-beep.wav</Link>
+ </Content>
+ <Content Include="Images\appbar.back.rest.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Images\appbar.close.rest.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Images\appbar.feature.video.rest.png">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Images\appbar.next.rest.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Images\appbar.stop.rest.png">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Images\appbar.save.rest.png">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="resources\notification-beep.wav" />
+ </ItemGroup>
+ <ItemGroup>
+ <Page Include="..\templates\standalone\cordovalib\CordovaView.xaml">
+ <Link>CordovaLib\CordovaView.xaml</Link>
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Page Include="..\templates\standalone\Plugins\UI\AudioRecorder.xaml">
+ <Link>CordovaLib\Plugins\UI\AudioRecorder.xaml</Link>
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Page Include="..\templates\standalone\Plugins\UI\ImageCapture.xaml">
+ <Link>CordovaLib\Plugins\UI\ImageCapture.xaml</Link>
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Page Include="..\templates\standalone\Plugins\UI\NotificationBox.xaml">
+ <Link>CordovaLib\Plugins\UI\NotificationBox.xaml</Link>
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Page Include="..\templates\standalone\Plugins\UI\VideoRecorder.xaml">
+ <Link>CordovaLib\Plugins\UI\VideoRecorder.xaml</Link>
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" />
+ <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" />
+ <ProjectExtensions />
+ <PropertyGroup>
+ <PreBuildEvent>
+ </PreBuildEvent>
+ </PropertyGroup>
+ <PropertyGroup>
+ <PostBuildEvent>
+ </PostBuildEvent>
+ </PropertyGroup>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file