问题
Issue: When building a UWP using the VSTS build service no .appxupload file for store submissions is created.
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.
After the build finishes I only have the _Test folder in my drop. No .appxupload file.
What I tried so far:
- 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.appxuploadnor the_Testfolder are created but the build step itself completes successfully. (Actually, theAppxPackagesfolder that is specified by default using theAppxPackageDirswitch is missing, too) - I tried running the
Create App Packages...option from within Visual Studio. This results in both, the.appxuploadand_Testfolder. - [Update] I found another switch to try at the MSBuild arguments which is
AppxPackageIsForStore(set totrue). This will generate the_Testfolder but still not.appxuploadpackage.
回答1:
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
But I just tried argument /p:UapAppxPackageBuildMode=StoreUpload, it can generate both _Test folder and .appxupload file, you may have a try.
来源:https://stackoverflow.com/questions/37713237/vsts-build-for-uwp-app-not-producing-a-appxupload-file