且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

由于TeamCity构建测试程序集错误,因此无法运行MSpec测试

更新时间:2022-12-08 10:33:33

David,

  • 您是哪个版本的MSpec 跑步?如果您仍然使用0.3.0.0,我 鼓励您切换到最 最新的0.4.9.0版本.这个版本 也包含mspec.exe(AnyCPU) 作为mspec-x86.exe(x86).你应该 使用与您的构建匹配的可执行文件 环境/体系结构.

  • Which version of MSpec are you running? If you're still on 0.3.0.0 I encourage you to switch to the most recent 0.4.9.0 build. This build contains mspec.exe (AnyCPU) as well as mspec-x86.exe (x86). You should use the executable matching your build environment/architecture.

请您跟踪一下程序集 与Fustion Log Viewer绑定- 它是Windows SDK的一部分.这 错误消息试图 加载不正确的程序 格式."表示MSpec能够 查找规范DLL,但定位 架构之间不匹配 MSpec可执行文件和规范 组装.

Can you please trace the assembly binding with Fustion Log Viewer - it's part of the Windows SDK. The error message "An attempt was made to load a program with an incorrect format." indicates that MSpec is able to find the spec DLL, but target architectures do not match between the MSpec executable and and spec assembly.