首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >上的OpenCover

上的OpenCover
EN

Stack Overflow用户
提问于 2015-04-29 13:42:56
回答 1查看 741关注 0票数 1

我试图在托管构建上使用OpenCover,最后出现以下错误:

代码语言:javascript
复制
No results, this could be for a number of reasons. The most common reasons are:
             1) missing PDBs for the assemblies that match the filter please review the
             output file and refer to the Usage guide (Usage.rtf) about filters.
             2) the profiler may not be registered correctly, please refer to the Usage
             guide and the -register switch.

注意,当我使用-register选项时,会得到以下错误:

代码语言:javascript
复制
An exception occured: Failed to register(user:False,register:True,is64:False):5 the profiler assembly;
you may want to look into permissions or using the -register:user option instead.
C:\Windows\system32\regsvr32.exe /s   "d:\a\src\packages\OpenCover.4.5.3723\x86\OpenCover.Profiler.dll"
         stack:    at OpenCover.Framework.ProfilerRegistration.ExecuteRegsvr32(Boolean userRegistration, Boolean register, Boolean is64)
            at OpenCover.Console.Program.Main(String[] args)

由于权限不足,我几乎肯定不能在VSO上使用regsvr32。所以我的问题是:有没有其他的办法?

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-05-08 18:41:24

如果安装需要计算机上的管理权限,则无法在宿主构建中执行此操作。在这种情况下,您必须创建自己的构建机器。这是我们希望在未来解决的问题。

我已经很久没有看过regsrv32了,但是您可以尝试一下消息中建议的-register:user选项。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29945575

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档