0

我希望有一些 Typemock 大师可以帮助解决以下错误。

我们目前正在测试 Typemock (v7.0.6) 的自动部署功能,作为 TFS 2010 构建的一部分。我想解决的一个问题是以下错误,它在创建或编辑构建定义时发生:

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

Error: Could not load file or assembly 'file:///C:\Users\gmonk\AppData\Local\Temp\VSTFSBuild\a6c25fba-a63b-4b51-92de-db3a3f60dcd0\MockWeaver.dll' or one of its dependencies. The module was expected to contain an assembly manifest.

Error: Could not load file or assembly 'file:///C:\Users\gmonk\AppData\Local\Temp\VSTFSBuild\a6c25fba-a63b-4b51-92de-db3a3f60dcd0\ProfileLinker.dll' or one of its dependencies. The module was expected to contain an assembly manifest.

我没有深入的了解,但据我了解,当您创建或编辑构建定义时,CustomBuildActivities 目录中的所有程序集都会转移到您的本地计算机并由 Visual Studio(?)加载。

更多信息

此错误出现在每个客户端的 Visual Studio 输出窗口中,无论其计算机上是否安装了 Typemock。请注意,错误中的路径确实存在于本地计算机上,并且所有文件都在那里。

我们自定义程序集的路径是“C:\TFS\Global\CustomBuildActivities”</p>

服务器路径是“$/Global/CustomBuildActivities”</p>

在这些目录中存在并签入以下文件:

  • TypeMock.Configuration.exe
  • 配置文件
  • Typemock.ArrangeActAssert.dll
  • TypeMock.CLI.Common.dll
  • TypeMock.dll
  • TypeMock.Integration.dll
  • Typemock.Interceptors.dll
  • Typemock.Isolator.VisualBasic.dll
  • TypeMock.TFS2010.dll
  • 黑名单.dat
  • 排除.dat
  • 命名空间.dat
  • typemockconfig.xml
  • MockWeaver.dll *
  • ProfileLinker.dll *

*在输入时——这些文件来自我本地安装的 Typemock 的 x64 目录。我还尝试了 x86 版本以及各自目录中的两个版本。

构建服务器是 Windows Server 2008 64 位,开发机器是 Windows 7 32 位。

TFS 构建控制器设置为在“$/Global/CustomBuildActivities”中查找自定义程序集(即“自定义程序集的版本控制路径”)

服务器上没有安装 Typemock。

构建模板 (XAML) 根据文档具有相关的 Typemock 构建活动。(我们正在使用 TypemockRegister/Start/Stop,这些活动可以在构建日志中看到,不会产生错误)。但是,当构建模板没有 Typemock 活动时,仍然会出现上面显示的错误。

4

1 回答 1

1

我想我有同样的问题,但你需要做的就是注册这些 dll。

  1. 从 Microsoft Visual Studio 2010 下的 Visual Studio 工具打开你的可视化 stdio 命令提示符。
  2. 输入regsvc32 "C:\Program files\Typemock\Isolator\7\AutoDeploy\x64\ProfileLink.dll"regsvc32 "C:\Program files\Typemock\Isolator\7\AutoDeploy\x64\MockWeaver.dll"

问题消失了。

于 2012-10-17T17:38:57.533 回答