【发布时间】:2012-10-18 01:44:41
【问题描述】:
我希望有一些 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”
服务器路径是“$/Global/CustomBuildActivities”
在这些目录中存在并签入以下文件:
- TypeMock.Configuration.exe
- Configuration.dll
- Typemock.ArrangeActAssert.dll
- TypeMock.CLI.Common.dll
- TypeMock.dll
- TypeMock.Integration.dll
- Typemock.Interceptors.dll
- Typemock.Isolator.VisualBasic.dll
- TypeMock.TFS2010.dll
- blacklist.dat
- exclude.dat
- namespaces.dat
- typemockconfig.xml
- MockWeaver.dll *
- ProfileLinker.dll *
*在键入此内容时 - 这些文件来自我本地安装的 Typemock 的 x64 目录。我还尝试了 x86 版本以及它们各自目录中的两个版本。
构建服务器是 Windows Server 2008 64 位,开发机器是 Windows 7 32 位。
TFS 构建控制器设置为在“$/Global/CustomBuildActivities”中查找自定义程序集(即“自定义程序集的版本控制路径”)
服务器上没有安装 Typemock。
构建模板 (XAML) 具有根据 documentation 的相关 Typemock 构建活动。 (我们正在使用 TypemockRegister/Start/Stop,这些活动可以在构建日志中看到,不会产生错误)。但是,当构建模板没有 Typemock 活动时,仍然会出现上面显示的错误。
【问题讨论】: