Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate PDB files when building Roslyn? #23467

Closed
dpopiashvili opened this issue Nov 29, 2017 · 4 comments
Closed

Generate PDB files when building Roslyn? #23467

dpopiashvili opened this issue Nov 29, 2017 · 4 comments

Comments

@dpopiashvili
Copy link

@dpopiashvili dpopiashvili commented Nov 29, 2017

Our company needs to generate OpenCover report for all the open source products we are using. One of them is Roslyn compiler. I'm not very good at either Roslyn or OpenCover, but as far as I understand, I need pdb files to generate cover report. The problem is that, the build steps documented doesn't generate pdb files when building Roslyn from source code, even though default build type is set to Debug. So my question is, how do I force pdb file genereration when building Roslyn?

Thanks

@tmat
Copy link
Member

@tmat tmat commented Nov 29, 2017

The PDBs we generate in a local build are embedded. See DebugType setting here: https://github.com/dotnet/roslyn/blob/master/build/Targets/Settings.props#L125
You can override DebugType and set it to full to get Windows PDBs. I believe OpenCover currently only supports Windows PDBs.

@jcouv
Copy link
Member

@jcouv jcouv commented Nov 30, 2017

@dpopiashvili A side note: I assume that you're trying to produce coverage information of running the Roslyn tests on the Rolsyn code. If that's indeed what you're trying to do, would you mind sharing your results once you produce them? Thanks

@dpopiashvili
Copy link
Author

@dpopiashvili dpopiashvili commented Nov 30, 2017

@tmat Thanks, that worked.
@jcouv sure, I will share it here once it's done.

Thanks guys

@jcouv
Copy link
Member

@jcouv jcouv commented Dec 6, 2017

I'll go ahead and close the issue, since the question (how to produced PDBs when building Roslyn?) was answered. Thanks

@jcouv jcouv closed this Dec 6, 2017
@jcouv jcouv added the Question label Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.