如何让 Visual Studio 连接到 Windows 应用商店? [英] How can I get Visual Studio to connect to the Windows Store?

查看:28
本文介绍了如何让 Visual Studio 连接到 Windows 应用商店?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Visual Studio 2015 中创建应用程序包以上传到 Windows 应用商店,但每次尝试连接到应用商店都会导致错误:

I'm trying to create app packages, in Visual Studio 2015, to upload to the Windows Store, but every attempt to connect to the Store results in the error:

发生意外的网络错误.应用列表无法刷新.请按刷新"按钮重试.

这个操作似乎是幂等的:按刷新"让我回到相同的状态.

This operation seems idempotent: pressing "Refresh" lands me back in the same state.

我将在下面详细介绍配置和我尝试过的东西,但在这个阶段,我只是想用任何方法将应用程序上传到商店.如果它必须在命令行上构建,或者如果我必须通过手动编辑生成一个 .appxupload,那很好.

I'll give a lot of detail about config and things I've tried below, but at this stage, I'm just after any method to get the app uploaded to the store. If it has to be built on the command line, or if I have to produce an .appxupload by hand editing, that's fine.

我正在尝试:

<代码>项目>存储 >创建应用程序包

并为是否要构建要上传到 Windows 应用商店的程序包?"选择是"

and selecting "Yes" for "Do you want to build packages to upload to the Windows Store?"

我在尝试将应用与应用商店关联时遇到同样的错误.我的理解是,这一步只是为了方便提取应用元数据,我已经尝试手动将其全部填充到应用清单中,但显然无济于事.

I get the same error when trying to associate the app with the Store. My understanding is that this step is just a convenience for pulling down app metadata, and I've tried to populate it all to the app manifest by hand, to no avail, apparently.

我也尝试选择否",然后将符号文件与生成的 .appxbundle 捆绑在一起,压缩文件并使用 .appxupload 扩展名重命名,然后手动上传.

I have also tried selecting "No" and then bundling the symbol files with the produced .appxbundle, zipping up the file and renaming with an .appxupload extension, then uploading that by hand.

根据我是否选择了Compile with .NET Native tool chain,Windows 商店验证会告诉我:

Depending whether I have selected Compile with .NET Native tool chain or not, the Windows store validation tells me either:

您不能提交预编译的 .NET Native 包"或者此包不是为提交到应用商店而构建的.请确保您上传的是启用了 .NET Native 工具链的发布版本."

"You cannot submit pre-compiled .NET Native packages" or "This package wasn't built for submission to the Store. Make sure you're uploading a Release build with the .NET Native tool chain enabled."

我正在运行 Visual Studio 2015,Version 14.0.25431.01 Update 3,但我也尝试过 Visual Studio 2017 Version 15.7.1 和 Visual Studio 2017 PreviewVersion 15.8.0 Preview 1.1(在各种论坛中建议).

I'm running Visual Studio 2015, Version 14.0.25431.01 Update 3, but I've also tried Visual Studio 2017 Version 15.7.1 and Visual Studio 2017 Preview Version 15.8.0 Preview 1.1 (suggested in various forums).

该应用是对应用商店中现有 Windows 8.1 应用的 UWP 更新.

The app is a UWP update to an existing Windows 8.1 app already in the Store.

我已使用有效的开发者帐户登录到 Visual Studio.

I'm signed in to Visual Studio with a valid developer account.

我注意到,当我尝试通过 Visual Studio 进行连接时,我的代理中会请求以下 URL:

I note that when I try to connect through Visual Studio, the following URLs are requested in my proxy:

https://go.microsoft.com/fwlink/?LinkId=823107&clcid=0x409https://go.microsoft.com/fwlink/?LinkId=780687&clcid=0x409https://developer.microsoft.com

两次重定向,最终到达开发者中心.

Two redirects, landing eventually at the developer centre.

如果有人可以建议我可能错过的配置,或者上传应用程序的替代方法,或者可以看到一种方法来推进我错过的那些路径之一,我将不胜感激.

If anyone can suggest what configuration I may have missed, or an alternative way to get the app uploaded, or can see a way to advance down one of those paths that I've missed, I'd be grateful.

推荐答案

这个 文章 展示了如何在没有商店包创建向导的情况下创建 appxupload 包.

This article shows how to create the appxupload package without the Store Package Creation Wizard.

我建议在 VS 反馈网站中报告连接到商店的问题.

I'd suggest to report the issue connecting to the store in the VS feedback site.

这篇关于如何让 Visual Studio 连接到 Windows 应用商店?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆