PartCover 2.5.3 赢 7 x64
你能告诉我你是如何让 PartCover 在 VS2008 上运行并赢得 7 x64 的吗?基于这篇文章如何在 x64 windows 中运行 PartCover ,我运行了
c:\Program Files (x86)\Gubka Bob\PartCover .NET 2.3>CorFlags.exe PartCover.exe /32BIT+ /Force
结果
Microsoft (R) .NET Framework CorFlags 转换工具。版本 3.5.21022.8 版权所有 (c) Microsoft Corporation。版权所有。 corflags :警告 CF011 :指定的文件是强名称签名的。使用 /Force 将使该映像的签名无效,并要求程序集重新签名。
我还运行了
c:\Program Files (x86)\NUnit 2.5.2\bin\net-2.0>CorFlags.exe nunit.exe /32BIT+ /Force
结果
Microsoft (R) .NET Framework CorFlags 转换工具。版本 3.5.21022.8 版权所有 (c) Microsoft Corporation。保留所有权利。
另外,根据我的讨论 将 PartCover 2.3 与.NET 4.0 运行时?,我还尝试使用 NUnit 的 x86 版本。
我尝试运行的覆盖范围是 NUnit 2.5.2 的 c# 货币示例,
我得到了相同的 System.Threading。 ThreadInterruptedException --->
System.Runtime.InteropServices.COMException (0x80040153):由于以下错误,检索 CLSID 为 {FB20430E-CDC9-45D7-8453-272268002E08} 的组件的 COM 类工厂失败: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 规则:+[*]*
Could you tell me how you got PartCover running with VS2008 and win 7 x64? Based on this post How do I run PartCover in x64 windows, I ran
c:\Program Files (x86)\Gubka Bob\PartCover .NET 2.3>CorFlags.exe PartCover.exe
/32BIT+ /Force
with result
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.
I also ran
c:\Program Files (x86)\NUnit 2.5.2\bin\net-2.0>CorFlags.exe nunit.exe /32BIT+ /Force
with result
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 3.5.21022.8 Copyright (c) Microsoft Corporation. All rights reserved.
Also, based on my discussion Using PartCover 2.3 with .NET 4.0 runtime?, I also tried to use the x86 version of NUnit
What I'm trying to run coverage for is the c# money sample for NUnit 2.5.2
I get the same 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
Thank you
Edit: same thing with PartCover 2.2
My settings:
- exe file:
C:\Program Files (x86)\NUnit 2.5.2\bin\net-2.0\nunit-console-x86.exe
- working dir:
c:\Program Files (x86)\NUnit 2.5.2\samples\csharp\money\
- work arg:
/config=c:\Program Files (x86)\NUnit 2.5.2\samples\csharp\money\cs-money.csproj
rules: +[*]*
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
感谢这篇文章,它现在可以工作了
http://www.planetgeek.ch /2009/10/15/get-partcover-running-on-x64-windows/
请使用 PartCover 2.2。两个程序集都需要使用 corflags 进行更改
Thanks to this post, it's working now
http://www.planetgeek.ch/2009/10/15/get-partcover-running-on-x64-windows/
Please use PartCover 2.2. Both assemblies need to be changed with corflags
我已经在 github 上启动了一个partcover 分支,它将处理.NET4 CLR (VS2010)
http://github。 com/sawilde/partcover.net4
寻找人员来测试/提出问题/等(或帮助开发)
I have started a fork of partcover on github which will handle .NET4 CLR (VS2010)
http://github.com/sawilde/partcover.net4
looking for people to test/raise issues/etc (or help develop)
我运行的是 Windows 7 x64 并且 PartCover 正常运行。我从 Shaun Wilde 的 fork 中获取了源代码(请参阅他对此问题的回答中的链接),并将所有项目上的目标 CPU 从 任何 CPU 更改为 x86,然后建造。
之后我可以获得代码覆盖率。我使用 nunit-console-x86.exe 在 32 位中运行单元测试。
I am running Windows 7 x64 and have PartCover running properly. I got the source code from Shaun Wilde's fork (see the link in his answer to this question) and change the target CPU on all the projects from Any CPU to x86 and then build.
After that I can get code coverage. I use nunit-console-x86.exe to run my unit tests in 32bit.