c# - TFS服务器需要安装什么

标签 c# tfs

我在 c# (vs2010) 上编写库,它与 MS Office 一起工作。在本地计算机上,它已成功构建。但是当我尝试在我的本地 tfs 服务器上构建时,我看到异常:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets (176): The "FindRibbons" task could not be loaded from the assembly Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

如果我理解正确,库需要放在 TFS 服务器上的 GAC (C:\Windows\Microsoft.NET\assembly\GAC_MSIL) 中。所以。我需要安装什么来修复此错误?

最佳答案

为 VSTO 设置构建服务器有点复杂。博客文章引用的白皮书中描述了详细的修改,How to Build Visual Studio 2010 Office Development Projects with TFS Team Build 2010 .您需要打包和部署一些组件并进行一些环境更改。

幸运的是,VSTO 团队提供了一组脚本,可以自动打包和部署所需的组件。在 Using Team Build with VSTO – Made Easier! 中描述了该过程

更新

不幸的是,该脚本很久以前就停用了,博客文章和 relevant MSDN page 都没有。已更新。

关于c# - TFS服务器需要安装什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23783826/

相关文章:

c# - .NET XML : What is the . NET 相当于 XmlDocument.TransformNode?

c# - Serilog 滚动文件

asp.net - 如何在 TFS 构建中从构建输出目录复制到我的服务器?

c# - 在 Outlook 365 中创建电子邮件草稿,然后将其打开进行编辑

c# - 包含指向另一个 c++ 结构的指针的 c++ 结构的编码

tfs - 为什么在 TFS 中所有文件都标记为 'merge'?

c# - 如何使用 TFS build 2015 运行自动 selenium 测试?

visual-studio-2010 - 在 VS 2010 中打开 TFS 查询结果,默认情况下所有节点都折叠

TFS WIQL 不支持 'Does Not Contain' 。还有其他选择吗?

c# - c# 中的 "operator true"是否正好有两个可以使用的地方?