用于UWP应用的VSTS构建未生成.appxupload文件 [英] VSTS build for UWP app not producing a .appxupload file

查看:82
本文介绍了用于UWP应用的VSTS构建未生成.appxupload文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:使用VSTS构建服务构建UWP时,未创建用于商店提交的.appxupload文件.

Issue: When building a UWP using the VSTS build service no .appxupload file for store submissions is created.

我所做的事情:我使用 Universal Windows App 模板创建了一个构建定义,该模板包含4个构建步骤.除了将存储库设置为我的外部Git存储库之外,我没有做任何更改.

What I did: I created a build definition using the Universal Windows App template that contains 4 build steps. Apart from setting the repository to my external Git repository I didn't change anything.

构建完成后,我的放置目录中只有_Test文件夹.没有.appxupload文件.

After the build finishes I only have the _Test folder in my drop. No .appxupload file.

到目前为止我尝试过的事情:

  1. 根据构建通用Windows Plattform应用我必须将UapAppxPackageBuildMode(设置为CI)开关添加到MSBuild参数中.我完全按照那里显示的来做.但是,既没有创建.appxupload也没有创建_Test文件夹,但是构建步骤本身已成功完成. (实际上,默认情况下也使用AppxPackageDir开关指定的AppxPackages文件夹也丢失了)
  2. 我尝试从Visual Studio中运行Create App Packages...选项.这将同时导致.appxupload_Test文件夹.
  3. [更新] ,我发现了另一个尝试使用MSBuild参数的开关,该参数为AppxPackageIsForStore(设置为true).这将生成_Test文件夹,但仍不会生成.appxupload软件包.
  1. According to Build your Universal Windows Plattform app I have to add the UapAppxPackageBuildMode (set to CI) switch to the MSBuild arguments. I did it exactly as shown there. However, neither the .appxupload nor the _Test folder are created but the build step itself completes successfully. (Actually, the AppxPackages folder that is specified by default using the AppxPackageDir switch is missing, too)
  2. I tried running the Create App Packages... option from within Visual Studio. This results in both, the .appxupload and _Test folder.
  3. [Update] I found another switch to try at the MSBuild arguments which is AppxPackageIsForStore (set to true). This will generate the _Test folder but still not .appxupload package.

推荐答案

我可以重现您的问题.如果不使用参数/p:UapAppxPackageBuildMode=CI,则只能获得_Test文件夹.如果添加参数/p:UapAppxPackageBuildMode=CI,我将在发布工件"步骤中收到错误消息:

I could reproduce your issue. If don't use argument /p:UapAppxPackageBuildMode=CI, I could only get _Test folder. If add argument /p:UapAppxPackageBuildMode=CI, I'll get error message during Publish Artifact step:

Not found PathtoPublish: C:\a\1\b\AppxPackages

但是我只是尝试了参数/p:UapAppxPackageBuildMode=StoreUpload,它可以同时生成_Test文件夹和.appxupload文件,您可以尝试一下.

But I just tried argument /p:UapAppxPackageBuildMode=StoreUpload, it can generate both _Test folder and .appxupload file, you may have a try.

这篇关于用于UWP应用的VSTS构建未生成.appxupload文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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