更新时间:2023-11-16 22:43:58
发现问题。
有一个.testsettings文件迫使我的测试将在32位模式运行,无论选择测试 - >测试设置 - >默认的处理器架构 - > X64
。
奇怪的是,如果我选择X86获得正确的 BadImageFormatException
在运行,而如果建筑被强制在.testsettings文件,我得到 FileNotFoundException异常
,这是一个有点误导。
The weird thing is that if I select X86 I get the proper BadImageFormatException
at runtime, while if the architecture is forced in the .testsettings file I get FileNotFoundException
, which is a little misleading.