About Publishing WPF Applications to the Microsoft Store

takashi 26 Reputation points
2022-09-30T09:09:25.477+00:00

I have a question regarding publishing to the Microsoft store.

[question 1]
Is it possible to publish an application created with WPF to the Microsoft store?
Are there any restrictions such as "must be .NET 5 or higher"?
(Is it possible or not depending on the version of Visual Studio?)

[question 2]
Can I publish a WPF application containing "unsafe code" to the Microsoft store?

[question 3]
Can I publish a WPF application that uses my own DLL files to the Microsoft store?

[question 4]
I'm thinking about publishing an app that uses gadgets.
Is there a way to restrict app installation to "gadget owners"?
(I believe that "Anyone can install an app published to the Microsoft store.")

[question 5]
I would like to require the input of the "password attached to the gadget" on the operation screen when the app is first launched.
When publishing an app to the Microsoft store, there is an "examination (certification procedure for application)".
Is it possible for an "application that cannot be operated without a password" to pass the "examination (certification procedure for application)"?

Many thanks.

Developer technologies | Windows Presentation Foundation
Developer technologies | XAML
0 comments No comments
{count} vote

Accepted answer
  1. Hui Liu-MSFT 48,681 Reputation points Microsoft External Staff
    2022-10-03T06:14:22.39+00:00

    Hi,@takashi . Welcome Microsoft Q&A.
    Issue 1: Yes, the WPF Application can be published to Microsoft Store but not directly. WPF can be converted to UWP via Desktop Bridge app and there are several ways to convert and package it. If you use Visual Studio to design your project, there is a simple way to prepare your WPF app to publish to the Store. You could use Windows Application Packaging Project to package your WPF app and upload the package in Dev center to release your app. For more details about packaging, you could refer to the official document: Package a desktop app from source code using Visual Studio.
    Issue 2:Yes.
    Issue 3:Yes.
    For Issue 4:You could try to refer here.
    Issue 5:For the successful submission of limited functionality, you can try to refer to here.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.