2

每次我尝试在 Visual Studio 2010 下编辑构建定义时都会收到此错误。我会收到以下消息“加载自定义活动和服务时出现 0 个失败、6 个错误和 0 个警告”。在信息对话框中,在“Build - Team Foundation”的“输出”窗口中出现以下内容

Summary: There were 0 failures, 6 errors and 0 warnings loading custom activities and services.

Error: Could not load file or assembly 'Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'file:///C:\Users\myUsername\AppData\Local\Temp\VSTFSBuild\26d7c1b8-85e5-45bf-ab92-1dbeaed4388a\Microsoft.Scripting.dll' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'file:///C:\Users\myUsername\AppData\Local\Temp\VSTFSBuild\26d7c1b8-85e5-45bf-ab92-1dbeaed4388a\Microsoft.Scripting.dll' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

Error: Could not load file or assembly 'file:///C:\Users\myUsername\AppData\Local\Temp\VSTFSBuild\26d7c1b8-85e5-45bf-ab92-1dbeaed4388a\Microsoft.Web.Administration.dll' or one of its dependencies. The system cannot find the file specified.

如何防止每次编辑构建定义时显示这些错误消息?

4

1 回答 1

1

您所在的构建代理是否在不同的物理机器上?如果是(我想是这样):创建一个包含所有可能的依赖项的中央团队项目是很常见的,这些依赖项将不会在构建服务器上安装或访问。然后,您可以在 TFS Admin 的 build-controller-definition 中使用选项“自定义程序集的版本控制路径”来访问包含这些元素的 TFS 文件夹。

于 2012-04-25T13:21:06.197 回答