Search code examples
c#wpfvisual-studiowindows-store

Not seeing any alternative option for 'Publish > Create App Packages' in my WPF application in Visual Studio


I'm planning on uploading my WPF application to the store, and I've created all the relevant packages until I got to this step:

enter image description here

I've got no idea how to get to this option in WPF. The whole document is about packing WPF/UWP projects and I want to upload a WPF app to the store. Is there an alternative way of doing what I want to do in WPF?

Meanwhile my WPF dialogue looks like so:

enter image description here

What do I do?

Edit: I can now get to the 'create app packages wizard' but this is from my packaging project. Is this the right way of doing things or should I create the app package from the application itself?


Solution

  • You need meet some pre-requirements to submit the WPF app to Microsoft Store.

    Part 1: You should be a developer for Microsoft Store.If you are not, this article describes how to register for a Windows developer account in Partner Center.

    Part 2: Package your WPF project as a desktop bridge app before the submission.I will show you how to do it by using Visual studio(There is no need to sign the package if package the app with Visual Studio).

    1. In Visual Studio, open the solution that contains your desktop application project.
    2. Add a Windows Application Packaging Project to your solution.
    3. Set the Target Version of this project to any version that you want, but make sure to set the Minimum Version to Windows 10 Anniversary Update.
    4. In Solution Explorer, right-click the Applications folder under the packaging project and choose Add Reference.
    5. Choose your desktop application project, and then choose the OK button.
    6. Build the packaging project to ensure that no errors appear. If you receive errors, open Configuration Manager and ensure that your projects target the same platform.
    7. Use the Create App Packages wizard to generate an MSIX package/bundle or an .msixupload/.appxupload file (for Store publishing to the Store).

    Part 3: Then you can sumbit in your Partner Center.You can refer to here for more details.