【问题标题】:Visual Studio Team Services UWP build with AdMediator使用 AdMediator 构建 Visual Studio Team Services UWP
【发布时间】:2016-04-19 15:59:27
【问题描述】:

我在 UWP 应用程序中使用 AdMediator 和 Store Engagement SDK,在构建之前使用此 .ps 脚本,但仍然构建失败,因为它找不到 AdMediator 和 Store Engagement SDK。有人解决了这个问题吗?

Write-Host "Installing Microsoft Universal Ad Client SDK..."
$msiPath = "$($env:USERPROFILE)\MicrosoftStoreEngagementAndMonetizationSDK.msi"
(New-Object Net.WebClient).DownloadFile('https://visualstudiogallery.msdn.microsoft.com/229b7858-2c6a-4073-886e-cbb79e851211/file/206533/2/MicrosoftStoreEngagementAndMonetizationSDK.msi', $msiPath)
cmd /c start /wait msiexec /i $msiPath /quiet
Write-Host "Installed" -ForegroundColor green

【问题讨论】:

  • 您在使用托管构建代理吗?

标签: tfs win-universal-app tfsbuild azure-devops


【解决方案1】:

我没有使用该 SDK,但如果安装 PowerShell 脚本中引用的 MSI 需要管理权限,您将无法使用托管的构建代理执行此操作。您需要创建自己的构建代理(可能是 Azure VM),或者弄清楚如何从 MSI 中提取您需要的内容(例如,如果您只需要一些 DLL 和其他实际上不需要的关键文件)已安装)。

【讨论】:

    【解决方案2】:

    安装 Microsoft Store Engagement and Monetization SDK 需要管理员权限。如果您使用的是托管构建代理,那么您将无法安装它,因为托管构建代理不提供管理员权限。详情请查看此链接:Hosted pool

    问:为您的构建执行任何流程都需要管理员 特权?

    A:不。那么您可以使用托管池。

    另一种方式就像巴克所说的那样:deploy your own build agent。使用此构建代理,您可以安装所需的软件/SDK。

    【讨论】:

      猜你喜欢
      • 2013-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-14
      • 2017-11-26
      • 2016-11-17
      • 1970-01-01
      • 2017-06-29
      相关资源
      最近更新 更多