Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure devops Visual Studio Online上的OpenCover_Azure Devops_Opencover - Fatal编程技术网

Azure devops Visual Studio Online上的OpenCover

Azure devops Visual Studio Online上的OpenCover,azure-devops,opencover,Azure Devops,Opencover,我试图在Visual Studio Online托管的构建上使用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 r

我试图在Visual Studio Online托管的构建上使用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.
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)
请注意,当我使用-register选项时,会出现以下错误:

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.
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。所以我的问题是:有其他的方法吗


谢谢

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


我已经很长时间没有查看regsrv32了,但是您可以尝试消息中建议的-register:user选项。

您可以尝试
-register:user
,详细信息请参见和OpenCover旁边安装的文档。如果不起作用,请尝试
-register:path32
-register:path64
@Shaun-wide:谢谢,添加选项-register:path32已起作用:)