我试图在托管构建上使用OpenCover,最后出现以下错误:
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选项时,会得到以下错误:
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。所以我的问题是:有没有其他的办法?
谢谢
发布于 2015-05-08 18:41:24
如果安装需要计算机上的管理权限,则无法在宿主构建中执行此操作。在这种情况下,您必须创建自己的构建机器。这是我们希望在未来解决的问题。
我已经很久没有看过regsrv32了,但是您可以尝试一下消息中建议的-register:user选项。
https://stackoverflow.com/questions/29945575
复制相似问题