我需要在生成服务器上安装 Azure 2.7 SDK 的哪些部分?

Which parts of the Azure 2.7 SDK do I need to install on a build server?

我们的构建服务器只配置了 MS Build Tools 2015 以确保我们有足够的安装来构建项目而不会安装太多(即完整的 VS 开发环境,这在过去导致了部署问题).

我们现在想开始在此服务器上构建 Azure 项目,但选项似乎是 "Everything including an instance of Visual Studio",或“All or some of these bits”:

显然我可能不需要模拟器...

除了 MS Build Tools 之外,执行以下操作使我能够在 Team City Build Agent 上构建 Azure 云服务项目:

  1. Copy the Web and WebApplications targets 来自 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0,在安装了 Visual Studio 的机器上。
  2. 然后从 SDK download page 按照安装说明中定义的顺序安装以下内容:
    1. MicrosoftAzureAuthoringTools-x64.msi
    2. MicrosoftAzureLibsForNet-x64.msi
    3. MicrosoftAzureTools.VS.140

然后使用 MSBuild Version "MS Build Tools 2015", MSBuild ToolsVersion "14.0" 我的 Azure 云服务项目很好地构建和打包.