-
Notifications
You must be signed in to change notification settings - Fork 248
How to investigate skippedTo="MissingPdb"? #636
Comments
We currently have issue with supporting .NET core - we are awaiting a 3rd party library to be updated to be production ready before we attempt to support it. |
@sawilde I've seen it work though, it's set up in the Google Cloud Platform SDK (this is the script executing it: https://github.com/GoogleCloudPlatform/google-cloud-dotnet/blob/master/build.sh), and I tried to replicate it in my own project, but then received the |
@sawilde With some more experimentation I managed to get it working. The only thing causing the problem was the
I had to remove the |
Ah yes portable PDBs - we don't handle them yet - we use a 3rd party library to provide PDB support and that is still in beta. I decided a long time ago to not use beta packages in OpenCover as it causes more problems and support issues and I don't have the time to deal with them. |
Same issue with VS2017 where "debugType": "portable" is defalt Add this lines to .csproj
Alternative go to Project Properties -> Build on Output Section click advanced and select Debugging Information Full |
Very Silly. |
Also please note that you have that it set to Full in the appropriate release configuration. I ran into the issue where it was set to Full for Debug but we were seeing this issue on our build server as it was building Release. Below is how your .csproj file should look to ensure you have the PDBs generating for both configurations. full true full true |
Hi Sawilde, Environment: i been trying last one week, Please help me on this. Thank You, |
|
Hi Sawilde, Thank you so much for your response. I have PDB files and they are full PDBs. Is it possible to copy manually PDB files? If so, would you please suggest me the location where MSTest copies assemblies? or one example, how can we control this with switches? Thanks & Regards, |
you should look at mstest switches - I think the one you are looking for is |
Please provide the following information when submitting an issue, where appropriate replace the
[ ]
with a[X]
My Framework
My Environment
I have already...
My issue is related to (check only those which apply):
Expected Behavior
I have a simple .NET Core application with the following folder structure:
Where
CoverageTest
is just a simple Console application with a single public class, andCoverageTest.UnitTests
implements a unit test for that class.I build both the Console app and the unit test project using the framework
net451
.I'm executing
opencover
and I'm expecting to get coverage results in the output xml.The command I'm executing is the following.
Actual Behavior
Instead of getting the coverage results, OpenCover.exe gives me the following output.
If I open the generated
coverage.xml
, I see a bunch of entries with all the various dependencies sayingskippedDueTo="Filter"
(as it is expected), and I also see my assembly saying `skippedDueTo="MissingPdb".If I open the folder I specified in the
searchdirs
argument (I made sure it's the same path by copy-pasting it), I can see that the folder contains both the exe and the pdb files for my assembly, so that seems to be correct.Steps to reproduce the problem:
If you could give me some generic pointers about what can cause this problem, I'm happy to investigate more, or I can upload the self-contained example reproducing the problem to Github.
The text was updated successfully, but these errors were encountered: