如何在TFS build 2010中避免不必要的dll

时间:2012-01-20 00:06:20

标签: tfs msbuild automation

我目前正在使用默认的xaml来构建我的解决方案。

现在,在每次TFS构建之后,我的drop文件夹看起来像这样:

{
 _publishwebsites
 x.dll
 y.dll
 x.unittest.dll
}

有没有什么可以避免在tfs构建期间删除所有这些dll并且只有_publishweb站点?

2 个答案:

答案 0 :(得分:0)

此复制发生在TFS构建期间的部分(序列)“将工作空间还原并将文件复制到丢弃位置”,并调用Microsoft.TeamFoundation.Build.Workflow.Activities.CopyDirectory

enter image description here

处理所需内容的一种快捷方法是将Source更改为String.Format("{0}\\_PublishedWebsites", BinariesDirectory)。这将产生如下结果:

Drop name (might want to change it to _PublishedWebSites)
{
  ... contents of _PublishedWebsites
}

答案 1 :(得分:0)

你可以change the configuration properties。建议在Release配置中的构建服务器上构建解决方案。您可以取消选中此版本配置中不需要的项目的“构建”选项。

相关问题