简体   繁体   English

TFS团队构建:部署Azure云服务

[英]TFS Team Build: Deploy Azure Cloud Service

I'm having some trouble deploying an Azure Web Service using the new Team Build that is available at Visual Studio Online. 我在使用Visual Studio Online提供的新Team Build部署Azure Web服务时遇到了一些麻烦。 When the solution have been built successfully, the deployment task tries to find the CsPkg and the CsCfg, which fails. 成功构建解决方案后,部署任务会尝试查找失败的CsPkg和CsCfg。

How do I specify the "Path of CsPkg/CsCfg under the default artifact directory" that is required? 如何指定所需的“默认工件目录下的CsPkg / CsCfg路径”? Do I have to specify some MSBuild arguments? 我是否必须指定一些MSBuild参数?

在此输入图像描述

在此输入图像描述

You can use the $(build.stagingDirectory) variable in the CsPkg / CsCfg fields. 您可以在CsPkg / CsCfg字段中使用$(build.stagingDirectory)变量。 This will be the root of your repo. 这将是您的回购的根源。 Your binaries will be at some location under there. 你的二进制文件将在那里的某个位置。 Eg $(build.stagingDirectory)\\*.cspkg and $(build.stagingDirectory)\\*.cscfg 例如$(build.stagingDirectory)\\*.cspkg$(build.stagingDirectory)\\*.cscfg

There's a huge list of built-in variables on MSDN . MSDN上有很多内置变量。

You may also have to build your cloud service project with the MSBuild argument /t:Publish 您可能还必须使用MSBuild参数/t:Publish来构建您的云服务项目

I just checked: If you use the "Cloud Service" deployment template, all of this stuff is automatically filled in for you, including the paths. 我刚检查过:如果您使用“Cloud Service”部署模板,则会自动为您填写所有这些内容,包括路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM