如何将c#桌面应用程序发布到Windows应用商店

问题描述:

您好,

我在C#中有一个应用程序,并希望将其发布到Windows商店。 我怎么能这样做? 谢谢。

I have an application in C# and would like to publish it onto windows store.  How can I do this?  Thanks.

当你提到"一个桌面应用程序"时,我认为你并不是指一个专为其设计的UWP桌面应用程序商店,而是WPF或Windows窗体应用程序。最初,无法在
Windows应用商店中发布此类应用程序。但是,最近微软推出了桌面网桥,它允许您以商店支持的方式封装其中一个桌面应用程序。

When you mention "a desktop app", I presume that you are not referring to a UWP desktop application designed for the Store, but rather a WPF or Windows Forms application. Originally, it was not possible to publish this type of applications in the Windows Store. However, recently Microsoft brought out the Desktop Bridge, which allows you to encapsulate one of these desktop applications in such a way that they are supported by the Store.

这个过程有点复杂,但在Microsoft文档中有详细记录:

The process is somewhat complex, but it is documented in detail at Microsoft docs:

https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-prepare