Visual Studio 在线 OpenCover
OpenCover on Visual Studio Online
我正在尝试在 Visual Studio 在线托管构建上使用 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。所以我的问题是:有替代方法吗?
谢谢
如果安装需要计算机的管理权限,则您无法在托管构建中执行此操作。在这种情况下,您将必须创建自己的构建机器。这是我们希望在未来解决的问题。
很久没看regsrv32了,不过你可以试试消息中建议的-register:user选项。
我正在尝试在 Visual Studio 在线托管构建上使用 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。所以我的问题是:有替代方法吗?
谢谢
如果安装需要计算机的管理权限,则您无法在托管构建中执行此操作。在这种情况下,您将必须创建自己的构建机器。这是我们希望在未来解决的问题。
很久没看regsrv32了,不过你可以试试消息中建议的-register:user选项。