I started developing a WinUI 3 application from scratch to Windows 11 to publish to the Microsoft Store but i can't find any option in Visual Studio to create the package and upload. I developed several UWP applications for Windows 10 and never had any problems. In WinUI 3 is different? Can someone help me? please
我开始从头开始开发WinUI3应用程序到Windows 11,以便发布到Microsoft应用商店,但我在Visual Studio中找不到任何选项来创建包和上载。我为Windows10开发了几个UWP应用程序,从来没有遇到过任何问题。在WinUI3中有什么不同?有人能帮我吗?请
Thank you!
谢谢大家!
更多回答
Don't you have a Publish
option available in Visual Studio if you right-click on the packaging project? Or what project template did you use?
如果您在打包项目上单击鼠标右键,在Visual Studio中没有可用的发布选项吗?或者您使用的是什么项目模板?
I edit the post. After reinstall Visual Studio 2022, now I have that option. What I need to do now? Publish? In UWP it was more simple.
我编辑这篇帖子。在重新安装了Visual Studio 2022之后,现在我有了这个选项。我现在需要做什么?出版?在UWP中,情况要简单得多。
In the packaging project, you should have the Publish->Create App Packages...
and Publish->Associate App with the Store...
options. Or how did you publish your UWP app?
在打包项目中,您应该有发布->创建应用程序包...并发布->将应用程序与应用商店关联...选择。或者你是如何发布你的UWP应用程序的?
优秀答案推荐
I had the same problem too. On creating your project you have to choose the template that says "Blank App, Packaged with Windows Application Packaging Project (WinUI 3 in Desktop)". Then you should see the store options again.
我也有同样的问题。在创建项目时,您必须选择这样的模板:“空白应用程序,与Windows应用程序打包项目(桌面中的WinUI3)打包在一起”。然后,您应该会再次看到商店选项。
I first tried "Blank App, Packaged (WinUI 3 in Desktop)", did not seem to give me the option even though it seems to mention the Microsoft store in the description.
我第一次尝试“空白应用程序,打包(WinUI3in Desktop)”,似乎没有给我这个选项,尽管它似乎在描述中提到了微软商店。
Edit:
The other thing I didn't mention is you have to do the publish from the package project not from the main one.
编辑:我没有提到的另一件事是,你必须从包项目进行发布,而不是从主项目。
Select the "Package and Publish" option further down the pop-up
在弹出窗口下方进一步选择“打包并发布”选项
更多回答
我是一名优秀的程序员,十分优秀!