0
我試圖在Visual Studio的在線託管構建使用OpenCover和我結束了以下錯誤:OpenCover上的Visual Studio在線
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。所以我的問題是:有沒有其他方法?
謝謝
你可以在[wiki](https://github.com/OpenCover/opencover/wiki/Usage)以及與OpenCover一起安裝的文檔中試用'-register:user'。如果這不起作用,請嘗試'-register:path32'或'-register:path64' –
@Shaun Wilde:謝謝,添加選項-register:path32工作:) – Tomap