用于UWP应用的VSTS构建未生成.appxupload文件 [英] VSTS build for UWP app not producing a .appxupload file
问题描述
问题:使用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.
到目前为止我尝试过的事情:
- 根据构建通用Windows Plattform应用我必须将
UapAppxPackageBuildMode
(设置为CI
)开关添加到MSBuild参数中.我完全按照那里显示的来做.但是,既没有创建.appxupload
也没有创建_Test
文件夹,但是构建步骤本身已成功完成. (实际上,默认情况下也使用AppxPackageDir
开关指定的AppxPackages
文件夹也丢失了) - 我尝试从Visual Studio中运行
Create App Packages...
选项.这将同时导致.appxupload
和_Test
文件夹. - [更新] ,我发现了另一个尝试使用MSBuild参数的开关,该参数为
AppxPackageIsForStore
(设置为true
).这将生成_Test
文件夹,但仍不会生成.appxupload
软件包.
- According to Build your Universal Windows Plattform app I have to add the
UapAppxPackageBuildMode
(set toCI
) 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, theAppxPackages
folder that is specified by default using theAppxPackageDir
switch is missing, too) - I tried running the
Create App Packages...
option from within Visual Studio. This results in both, the.appxupload
and_Test
folder. - [Update] I found another switch to try at the MSBuild arguments which is
AppxPackageIsForStore
(set totrue
). 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屋!