68089

How to deploy Visual Studio Cordova app to Windows 8?

Question:

When I create a sample cordova app in Visual Studio I can target Android and it generates an APK what I can open easily in Android. How to do the same for Windows 8/8.1 ? ... what is the equivalent of the APK file for windows? (I was looking for a .exe or similar but cant find ... assume this must be simple!?)

Answer1:

In Windows 8.0/8.1 <strong><em>.appx</em></strong> and <strong>.appxupload</strong> package are created after build and like apk this is also a zip file, to view the content of package, change the extension to .zip and extract the content. *.appx is equivalent to apk in Windows. Appx package after build is located at bld[Debug or Release]\platforms\Windows\AppPackages

Answer2:

qtime67,

Here's a link to the Cordova documentation on how to package an app for windows 8/8.1.

<strong><em>Documentation</em></strong> <a href="https://msdn.microsoft.com/en-us/library/vstudio/dn757048.aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/vstudio/dn757048.aspx</a>

The documentation does the job, check it out.

Answer3:

You can refer to the below link for a detailed explanation on how to make the Cordova Windows/Windows Phone apps ready for packaging:

<a href="https://taco.visualstudio.com/en-us/docs/tutorial-package-publish-readme/#windows-81" rel="nofollow">https://taco.visualstudio.com/en-us/docs/tutorial-package-publish-readme/#windows-81</a>

From Visual Studio, you basically do a Project --> Store --> Create App Packages, in the resulting Wizard, choose 'No' if you just want to create the equivalent of apk and test it on a phone/emulator and click next. Choose Version and other details and click on 'Create'. This should generate an 'appxupload' file which you can move to a phone and install and test.

Recommend

  • App keeps crashing during certification when using Microsoft Advertising SDK for XAML
  • UWP Radial Progress Bar Image Fill
  • BackgroundMediaPlayer set Uri source of Media library item
  • Loop animation drawable
  • VB.NET 2012 Property Set on Property Get
  • Gray line inside cardview :)?
  • CoreData basics – to-many relationship array data
  • Eloquent Relationship on Partial Match
  • Wrapping text in spinner android
  • How to know which Linq statement produced the SQL on hand during runtime?
  • How to resolve permission denied maybe missing internet permission?
  • XMLBeans Duplicate Class and Class Not Found Errors
  • Easiest way to get current unix timestamp via XSL
  • How to retrieve information from antrun back to maven?
  • using System.Speech.Synthesis with Windows10 universal app (XAML-C#)
  • Function calls are not supported. Consider replacing the function or lambda with a reference to an e
  • Android Studio 1.3 RC3. Google Play services out of date. Requires 7571000 but found 6774470
  • How to get current document uri in XSLT?
  • Read text file that is not in the main package in a runnable jar
  • Roxygen error “Skipping invalid path”
  • Jenkins: FATAL: Could not initialize class hudson.util.ProcessTree$UnixReflection
  • Unable to install Git-core+svn by MacPorts
  • How to add git credentials to the build so it would be able to be used within a shell code?
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • Installing Hadoop, Java Exception about illegal characters at index 7?
  • DotNetZip - Calculate final zip size before calling Save(stream)
  • Convert array of 8 bytes to signed long in C++
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • Calling of Constructors in a Java
  • Traverse Array and Display in markup
  • Transpose CSV data with awk (pivot transformation)
  • Cannot Parse HTML Data Using Android / JSOUP
  • Load html files in TinyMce
  • Free memory of cv::Mat loaded using FileStorage API
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • -fvisibility=hidden not passed by compiler for Debug builds
  • Getting Messege Twice Using IMvxMessenger
  • Net Present Value in Excel for Grouped Recurring CF
  • How to load view controller without button in storyboard?