This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
Support portable pdb files #610
Closed
Description
Please provide the following information when submitting an issue, where appropriate replace the [ ]
with a [X]
My Framework
- .NET 2
- .NET 3.5
- .NET 4
- .NET 4.5
- .NET 4.6
- .NET 4.6.1
- .NET 4.6.2
- .NET Core 1.0.0
- Something else
My Environment
- Windows 7 or below (not truly supported due to EOL)
- Windows 8
- Windows 8.1
- Windows 10
- Windows 10 IoT Core
- Windows Server 2012
- Windows Server 2012 R2 (Appveyor)
- Windows Server 2016
I have already...
- repeated the problem using the latest stable release of OpenCover.
- reviewed the usage guide and usage document.
- have looked at the opencover output xml file in an attempt to resolve the issue.
- reviewed the current issues to check that the issue isn't already known.
My issue is related to (check only those which apply):
- no coverage being recorded
- 32 or 64 bit support
- feature request
Expected Behavior
OpenCover should report some coverage when profiling dotnet core assemblies with portable pdb's.
Actual Behavior
The assemblies are skipped due to "MissingPdb"
Steps to reproduce the problem:
Compile a dotnet core assembly with "debugType": "portable"
in buildOptions in the project.json and profile some tests using OpenCover.
Dotnet Core introduced a new format for pdb files (https://github.com/dotnet/core/blob/master/Documentation/diagnostics/portable_pdb.md). OpenCover shoud support this new format when profiling. As stated here #601 Mono.Cecil should provide the needed support. It seems the code is already there: jbevain/cecil@7cde491.