Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Check if the PDB writer is available before emitting the pdb #732

Closed
davidfowl opened this issue Oct 9, 2014 · 5 comments
Closed

Check if the PDB writer is available before emitting the pdb #732

davidfowl opened this issue Oct 9, 2014 · 5 comments
Assignees
Milestone

Comments

@davidfowl
Copy link
Member

const string SymWriterGuid = "0AE2DEB0-F901-478b-BB9F-881EE8066788";

static bool IsPdbAvailable
{
    get
    {
        try
        {
            return Marshal.GetTypeFromCLSID(new Guid(SymWriterGuid)) != null;
        }
        catch
        {
            return false;
        }
    }
}
@davidfowl davidfowl self-assigned this Oct 9, 2014
@davidfowl davidfowl added this to the 1.0.0-beta1 milestone Oct 9, 2014
@Praburaj
Copy link
Contributor

/cc @jhawk42 this seems to fix the pdb issues..

/cc @victorhurdugaci

@Praburaj
Copy link
Contributor

Similar fix required for razor as well.

@jhawk42
Copy link
Contributor

jhawk42 commented Oct 10, 2014

:shipit:

@davidfowl
Copy link
Member Author

/cc @pranavkm

@Praburaj
Copy link
Contributor

I created an MVC bug. aspnet/Mvc#1324

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants