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

Commit 142b73e

Browse files
committed
Made the PDB errors go away
#791
1 parent a996ebc commit 142b73e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Microsoft.Framework.Runtime.Roslyn/RoslynProjectReference.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,14 @@ private static bool SupportsPdbGeneration()
221221
// Check for the pdb writer component that roslyn uses to generate pdbs
222222
const string SymWriterGuid = "0AE2DEB0-F901-478b-BB9F-881EE8066788";
223223

224-
return Marshal.GetTypeFromCLSID(new Guid(SymWriterGuid)) != null;
224+
var type = Marshal.GetTypeFromCLSID(new Guid(SymWriterGuid));
225+
226+
if (type != null)
227+
{
228+
return Activator.CreateInstance(type) != null;
229+
}
230+
231+
return false;
225232
}
226233
catch
227234
{

0 commit comments

Comments
 (0)