对不起,我的英语不好。
使用Windows Template Studio创建的UWP解决方案,目标为17763 SDK。我选择了FeedbackHub资源,该资源将安装并引用Microsoft.Services.Store.Engagement NuGet包。在我的本地计算机上,该解决方案可以按预期的方式构建和运行,但是当Azure Pipelines运行时,VSBuild中的构建失败,并出现错误MSB3774,表明未安装Microsoft Store Services SDK。
我修改了PowerShell脚本on this question以下载并安装SDK,但是构建仍然失败。
我如何告诉Azure Pipelines在VSBuild之前安装Microsoft Store Services SDK?
我的azure-pipelines.yml
:
# Universal Windows Platform
# Build a Universal Windows Platform project using Visual Studio.
# Add steps that test and distribute an app, save build artifacts, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: 'VS2017-Win2016'
variables:
solution: '**/*.sln'
buildPlatform: 'x86|x64|ARM'
buildConfiguration: 'Release'
appxPackageDir: '$(build.artifactStagingDirectory)\AppxPackages\'
steps:
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
platform: 'x86'
solution: '$(solution)'
configuration: '$(buildConfiguration)'
msbuildArgs: '/p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload'
感谢我能提供的任何帮助。