0

有没有办法创建“构建”但实际上不编译站点的输出?基本上,我想将文件从 TFS 中的源代码管理实时推送到最终的 IIS 文件夹目标。

我在我的其他项目构建中使用了 CopyDirectory,但这需要 BuildDetail.DropLocation(编译构建)。也许我可以使用不需要构建 DropLocation 的 CopyDirectory Source 的另一个选项。

为简化起见,我想使用构建模板将文件直接从 tfs 源控件复制到文件夹,但这不会编译文件。那可能吗?

4

2 回答 2

1

While the default .xaml build workflow for Team Foundation Build is indeed a compilation build it does not have to be. I usually recommend teams to at least have one compile and one deploy .xaml workflow.

1) The CompileMyStuff.xaml (DefaultBuildTemplate.xaml) should take my stuff from source control and do whatever is needed to create a Build Drop folder with my output. I may or may not need to actually compile before creating the drop, and it looks like you just want to copy to the drop location.

2) The DeployMyStuff.xaml should take a build number and deploy my code to an environment of my choice.

It looks like you want to skip the "Drop" and go state to deploy and while I would never recommend this you do have a "BuildDetail.BuildLocation" for teh local workspace where the build server has done a get of your code. You can just "CopyDirectory" from there to your server/host for the website.

If you are having a little trouble you could use the Community Build Extensions and fire up PowerShell to do your copy/deploy.

于 2012-09-14T21:44:08.253 回答
0

我想出了解决这个问题的办法。我创建了一个新的 .xaml 文件,然后我放入序列中的唯一项目是“DownLoadFiles”。然后我填写了任务的属性并运行了“构建”并且它起作用了。

于 2012-09-14T22:07:04.333 回答