【问题标题】:OpenCover running on a 64bits TeamCity agent在 64 位 TeamCity 代理上运行的 OpenCover
【发布时间】:2014-02-12 22:15:55
【问题描述】:

我们正在将 TeamCity 代理从 32 位系统迁移到 64 位系统,但由于 OpenCover 中的错误,一些构建开始失败。

这是堆栈跟踪:

E:/BuildAgent/work/7777662cc87ae003/tools/opencover/opencover.console.exe -returntargetcode -target:E:/BuildAgent/work/7777662cc87ae003/tools/nunit/nunit-console.exe -targetargs:"./myTests.dll /framework=v4.0.30319 /noshadow /nologo /work=output /result:my-tests-results.xml" -filter:"+[something]* -[*something.Test]*" -output:results.xml -register:user

[10:43:16][执行测试:覆盖] 发生异常:未能 register(user:True,register:True,is64:False):2 探查器程序集; 您可能需要查看权限或使用 -register:user 选项。 C:\Windows\system32\regsvr32.exe /s /n /i:user "E:\BuildAgent\work\7777662cc87ae003\tools\opencover\x86\OpenCover.Profiler.dll"

[10:43:16][执行测试:覆盖] 堆栈:在 OpenCover.Framework.ProfilerRegistration.ExecuteRegsvr32(布尔 userRegistration,布尔寄存器,布尔is64)

[10:43:16][执行测试:覆盖] OpenCover.Console.Program.Main(String[] args)

有趣的注意事项: 1)我们正在使用错误消息所指示的'- register:user' 2)虽然我们的新agent是64bits系统,但是异常表示调用了register方法

【问题讨论】:

    标签: teamcity opencover


    【解决方案1】:

    通过注册 64 位 opencover profiler 解决了这个问题:

    regsvr32 /s \{ToolsFolder}\OpenCover\x64\OpenCover.Profiler.dll 
    

    【讨论】:

    • 是的,我相信使用指南“构建系统集成”中也提到了这一点
    • 对我来说,我需要让我的 gitignore 允许我的 gitlab 项目有这个文件。感谢您的提示
    猜你喜欢
    • 2013-11-20
    • 1970-01-01
    • 2011-01-30
    • 2013-02-23
    • 2015-06-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多