你能告诉我你是如何让 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/