Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I publish a UWP package to the Windows Store via Azure Devops?

I am using Desktop Bridge with a c# Winforms application to make a package to publish to the store.

If I make my package locally using Desktop Bridge then I can upload it to the windows store successfully.

I am also now able to build and create the package artifact using a pipeline and I can see it in the Artifacts explorer.

I am having trouble following the docs on how to get the package into the store.

It mentions

ps

$(Build.ArtifactStagingDirectory)\
AppxPackages\MyUWPApp__$(AppxVersion)_x86_x64_ARM_bundle.appxupload

Does ps mean powershell?

How do I get the YAML?

Or am I meant to build a release pipeline?

I tried looking at the release tasks but could not find anything that mentioned the Store.

like image 944
Kirsten Avatar asked Dec 18 '18 09:12

Kirsten


People also ask

How do I publish my UWP app to the Windows Store?

In Solution Explorer, open the solution for your UWP app project. Right-click the project and choose Publish->Create App Packages (before Visual Studio 2019 version 16.3, the Publish menu is named Store).

How do I publish a MSIX package?

MSIX packaged apps can be installed using deployment tools, PowerShell, or by using AppInstaller. By using AppInstaller to install an MSIX packaged app, the user or IT Pro may select to right-click and install or double click the MSIX installer.

How do I put an app on the Microsoft store?

Go to the Start button, and then from the apps list select Microsoft Store. Visit the Apps or Games tab in Microsoft Store. To see more of any category, select Show all at the end of the row. Select the app or game you'd like to download, and then select Get.


1 Answers

This is a great article on how to build your package and deploy it to Hockey App (now App Center) but can be used to deploy to the store as well. I'm not sure exactly how you would convert it to YAML, but it shouldn't be too difficult.
https://mobilefirstcloudfirst.net/2016/02/continuous-deployment-of-windows-10-uwp-apps-to-hockeyapp-using-vsts/

Once you have the package built following the instructions in the article (It sound's like you already have), skip the Hockey App steps and instead publish to the store with this Azure DevOps extension task step: https://marketplace.visualstudio.com/items?itemName=MS-RDX-MRO.windows-store-publish

Instructions to use the extension are on the extensions web page. You'll have to have an Azure Active Directory account. If you don't have one, it's easy to set up and it's free!

To answer your questions

  1. Does ps mean powershell? - I just browsed down through the article and I don't think so. Usually it's saying you need to give this value in a property in the build step.
  2. YAML is pretty new, and there is not, as far as I know, an easy way to convert it to YAML.
  3. You'll probably want to do this in two steps: 1) Build the package and upload the artifact. 2) Download and release the package. Step 1 should be done in a build, step 2 should be done in a release. I find splitting these steps into two very helpful when only the release fails. Then I don't have to rebuild the package to try again, I can just redeploy the release.
like image 122
James Esh Avatar answered Oct 15 '22 14:10

James Esh