每次我尝试在Visual Studio 2010下编辑构建定义时都会收到此错误。我会收到以下消息“有0个失败,6个错误和0个警告加载自定义活动和服务。”在信息对话框中,以及“构建 - 团队基础”
的“输出”窗口中的以下内容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.
如何在每次编辑构建定义时阻止显示这些错误消息?
答案 0 :(得分:1)
您在不同的物理计算机上找到的构建代理程序?如果是(我想它):创建一个包含所有可能的依赖项的中心团队项目是很常见的,这些依赖项将不会在构建服务器上安装或访问。然后,您可以使用TFS管理中的build-controller-definition中的“自定义程序集的版本控制路径”选项来访问包含这些元素的TFS文件夹。