.net - PartCover 2.5.3 赢 7 x64

标签 .net 64-bit partcover corflags

你能告诉我你是如何让 PartCover 在 VS2008 上运行并赢得 7 x64 的吗?基于这篇文章How do I run PartCover in x64 windows ,我跑了

c:\Program Files (x86)\Gubka Bob\PartCover .NET 2.3>CorFlags.exe PartCover.exe /32BIT+/强制

结果

Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 3.5.21022.8 Copyright (c) Microsoft Corporation. All rights reserved. corflags : warning CF011 : The specified file is strong name signed. Using /Force will invalidate the signature of this image and will require the assembly to be resigned.

我也跑了

c:\Program Files (x86)\NUnit 2.5.2\bin\net-2.0>CorFlags.exe nunit.exe/32BIT+/Force

结果

Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 3.5.21022.8 Copyright (c) Microsoft Corporation. All rights reserved.

另外,根据我的讨论Using PartCover 2.3 with .NET 4.0 runtime? ,我也尝试过使用x86版本的NUnit

我尝试运行的覆盖范围是 NUnit 2.5.2 的 c# 货币示例

我得到相同的System.Threading.ThreadInterruptedException --->

System.Runtime.InteropServices.COMException (0x80040153): Retrieving the COM class factory for component with CLSID {FB20430E-CDC9-45D7-8453-272268002E08} failed due to the following error: 80040153

谢谢

编辑:与 PartCover 2.2 相同

我的设置:

  • exe 文件:C:\Program Files (x86)\NUnit 2.5.2\bin\net-2.0\nunit-console-x86.exe
  • 工作目录:c:\Program Files (x86)\NUnit 2.5.2\samples\csharp\money\
  • 工作参数:/config=c:\Program Files (x86)\NUnit 2.5.2\samples\csharp\money\cs-money.csproj 规则:+[*]*

最佳答案

多亏了这篇文章,它现在可以工作了 http://www.planetgeek.ch/2009/10/15/get-partcover-running-on-x64-windows/ 请使用 PartCover 2.2。两个程序集都需要使用 corflags 进行更改

关于.net - PartCover 2.5.3 赢 7 x64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2965064/

相关文章:

64-bit - 什么是 16、32 和 64 位架构?

.net - 将 PartCover 2.3 与 .NET 4.0 运行时一起使用?

c# - DLL 包含在 exe.file 中?

.net - 集成(Selenium)测试后回滚数据库

c# - 单核cpu上的C#并行和多线程

c# - SQL anywhere查询错误: Not enough values for host variables

assembly - 标记的平均字节数

windows - Windows 上的 CMake -G Ninja 指定 x64

mstest - PartCover 控制台生成空输出 xml