如何在 PowerShell 中为 Store (appxupload) 构建 Windows 8.1 应用程序? [英] How to build Windows 8.1 app for Store (appxupload) in PowerShell?

查看:24
本文介绍了如何在 PowerShell 中为 Store (appxupload) 构建 Windows 8.1 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,当我想为应用商店构建 Windows 8.1 或 Windows Phone 8.1 应用程序时,我打开 Visual Studio 2015 并在解决方案资源管理器中启动 Store -> 创建应用程序包.. 向导.

Typically when I want to build Windows 8.1 or Windows Phone 8.1 app for Store I open Visual Studio 2015 and in Solution Explorer I start Store -> Create App Packages.. wizard.

我希望能够使用 PowerShell 生成相同签名的 .appxupload 包,理想情况下只提供目标项目文件、目标平台、构建配置和版本号.

I'd like to be able to produce identical signed .appxupload packages using PowerShell ideally just providing the target project file, target platform(s), build configuration and version number.

有一个 打包和部署页面,但我不知道正确的命令顺序是什么.这个标准任务一定有一个简单的解决方案,对吧?请注意,我安装了 Windows 10 和 Visual Studio 2015 Pro,因此所有先决条件都应该存在.

There is a page for packaging and deployment, but I just don't know what is the proper command order to use. There must be a simple solution for this standard task, right? Note I got Windows 10 and Visual Studio 2015 Pro installed, so all prerequisites should be there.

还有一个额外的问题,是否可以在这个创建的包上也从 PowerShell 运行 Windows 应用认证工具包?
谢谢

And a bonus question, is it possible to run Windows App Certification Kit on this created package as well from PowerShell?
Thanks

推荐答案

在挖掘日志后我自己找到了答案.
在使用向导将项目与商店相关联并为商店构建应用程序并保存所有更改后,可以再次构建商店包,只需在参数中使用项目/解决方案调用msbuild"即可.

After log of digging I found the answer myself.
After associating the Project with Store and building app for Store using the Wizard and saving all changes it's then possible to build the store package again calling just 'msbuild' with the project/solution in a parameter.

我在这里详细描述过:
https://www.suchan.cz/2015/09/building-windows-store-appxupload-packages-using-powershell/

这篇关于如何在 PowerShell 中为 Store (appxupload) 构建 Windows 8.1 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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