Generate your Visual Studio C++ solution
Package a UWP app in Visual Studio
Before you distribute your Universal Windows PlatformAn IAP feature that supports Microsoft’s In App Purchase simulator, which allows you to test IAP purchase flows on devices before publishing your application. More info
See in Glossary (UWP) application, you need to package it in Visual Studio. For more information, refer to Microsoft documentation on packaging a desktop or UWP app in Visual Studio.
Create an app package in Visual Studio
To create an app package in Visual Studio:
- Open your built UWP project in Visual Studio.
- In the Solution Explorer, right-click on your main project.
- Go to Publish > Create App Packages. The Create App Packages wizard appears.
- Select Microsoft Store using a new app name and then click Next.
Note: If you choose Sideloading, Visual Studio will not generate the app package upload file for Partner Center submissions. You can select the Sideloading option if you only want to create a MSIX package for non-Store distribution.
- On the next page, sign in to the Partner Center with your developer account. If you don’t have a developer account yet, the wizard will show you how to create one.
- Select the app name for your package from the list of apps currently registered to your account, or reserve a new name in the Partner Center.
- In the Select and Configure Packages dialog, select the architectures you want to target based on the devices you want to deploy your application to.
- In the Generate app bundle listbox, select Always.
- Click Create to generate the app package.
Your app is now successfully packaged.
Install your package on your machine
After you create your app package, use the following steps to install the package on your machine:
- Open the folder which contains your package.
- Right-click on the
Add-AppxPackage <yourappx>.appx
file. Choose Run with PowerShell and follow the prompts.
- If you signed your file, the file will now install on your machine.
Note: If you’re re-installing an .appx file, you must uninstall the file that was previously installed by right-clicking the file icon, and then clicking Uninstall.
Generate your Visual Studio C++ solution