Search code examples
c#winformscertificatewindows-store-appssetup-project

How can I create a setup file to add to the Windows Store?


I have a Win Form(.net 4.7.2) project developed with C#. I right click on my project in Visual Studo and use the Publish menu to create setup files. I have a code signing certificate for my project that I renew every year.I get an error when I want to add my app to the Windows Store.

`App Policies: 10.2.9

Win32 products must be submitted as a standalone/offline installer. Installers must not be a downloader that downloads the bits it needs to run. Please resubmit with an appropriate installer.`

For more details for App Policies: 10.2.9: https://learn.microsoft.com/tr-tr/windows/uwp/publish/store-policies

Do I need to create a setup project in Visual Studio? I didn't understand exactly what to do. How can I research this?

When I Publish the project, the installation file and many folders are created. I know this is not a professional setup file, but I need a solid, secure setup file signed with certificates. I couldn't figure out how to do this, I don't even know how to search.


Solution

  • The simplest way to distribute a C# (WinForms/WPF) application in Microsoft Store would be to package the app into an Appx package using Visual Studio. I uploaded my WPF application to MS Store by the following procedure:

    1. Add a Windows Application Packaging Project to my solution in Visual Studio
    2. Right click Dependencies of the Packaging project -> Add Project Reference to my application project
    3. Right click the Packaging project -> Publish -> Create App Packages