Coverage analysis failed. PDB server error: Invalid MVID for the absolute module path is detected.

Answered

Hi there,

 

I'm trying to use dotCover but can't seem to get it working. I keep getting the following dialog box everytime I run Resharper > Cover > Cover Application.  

 


 

Steps to reproduce error:

1) Create new .NET Core Console Application (v2.0 for me)

 

2) Select release mode and build the solution. The following 5 files are created for me inside project-name\bin\Release\netcoreapp2.0

  • ConsoleApp.deps
  • ConsoleApp.dll
  • ConsoleApp.pdb
  • ConsoleApp.runetimeconfig.dev
  • ConsoleApp.runtimeconfig

 

3) Run Resharper > Cover > Cover Application

 

4) Select .NET Core Application in the Cover Application dialog box

 

5) Click the advanced checkbox and select the .dll that was built as Application (project-name\bin\Release\netcoreapp2.0\ConsoleApp.dll)  

 

6) Set working directory to project-name\bin\Release\netcoreapp2.0

 

7) Edit Symbol Search Policy, by setting the search path to project-name\bin\Release\netcoreapp2.0 and checking all the checkboxes except "Access Symbol Server".

 

8) Run the coverage

 

Help is appreciated...

 

0
2 comments
Avatar
Permanently deleted user

UPDATE: It seems as if the issue was caused by having the project located within my OneDrive directory. No idea why this happened, but creating the project outside of OneDrive lets me run dotCover. 

0

Hello, Samuel,

Unfortunately, it seems to be an issue with dotCover analysis when "Files On-Demand" feature is enabled for OneDrive : https://youtrack.jetbrains.com/issue/DCVR-9090. Will the problem persist if you disable this feature?

0

Please sign in to leave a comment.