I am getting the following error when running the dotcover console tool from by CI build in Microsoft Visual Studio Team Services.
Failed to verify x64 COM object registration: Empty path to COM object.
The command I am running is:
dotcover analyse /TargetExecutable="c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\MSTest.exe" /TargetArguments="/testcontainer:$(build.sourcesdirectory)\PATH_TO_MY_TEST\TEST.DLL" /Output=$(build.sourcesdirectory)\PATH_TO_MY_TEST\coverage.xml
When I run the exact same command from my server it all works just fine and the coverage file is created. Seeing the other posts I suspect it has something to do with the permissions the VSTS agent Windows account has, but I cannot figure out what.
Do you have any suggestions? This would be a very cool way to get code coverage in my CI builds!
Possibly (probably) related to: https://dotnettools-support.jetbrains.com/hc/en-us/community/posts/207330745-Failed-to-verify-x64-COM-object-registration-using-DotCover-Command-Line-10-0-2-from-TFS-2015-Build