我正在使用 TFS 2012(更新 1)。我有一个构建定义设置并且工作正常,但是突然构建开始失败并出现以下错误:
Exception Message: Could not load file or assembly 'Microsoft.TeamFoundation.VersionControl.Common.Integration, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (type FileLoadException)
Exception Stack Trace: at Microsoft.TeamFoundation.VersionControl.Client.Changeset.get_ArtifactUri()
at lambda_method(Closure , ActivityContext )
at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContextT
at System.Activities.InArgument`1.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance activityInstance, ActivityExecutor executor)
at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument, Int32 nextArgumentIndex, ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate)
at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Int32 startIndex)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
在之前的成功构建和失败的构建之间,我唯一做的就是将安装程序类添加到 Windows 服务项目。不知道这将如何在构建服务器上导致此错误。
使用相同构建过程模板的其他构建定义工作正常,并且正在构建的解决方案在本地构建良好。实际上,这个错误似乎不是在构建过程本身,而是在工作流后期执行关联变更集和工作项步骤时。
如果我在构建定义中禁用此功能(流程 -> 高级部分 -> 关联变更集和工作项),一切正常。
有任何想法吗?