Merge branch 'release' into dev

This commit is contained in:
YishaiGalatzer 2014-10-22 17:15:41 -07:00
commit 4efdae2190
1 changed files with 10 additions and 2 deletions

View File

@ -202,12 +202,20 @@ namespace Microsoft.AspNet.Mvc.Razor.Compilation
// Check for the pdb writer component that roslyn uses to generate pdbs
const string SymWriterGuid = "0AE2DEB0-F901-478b-BB9F-881EE8066788";
return Marshal.GetTypeFromCLSID(new Guid(SymWriterGuid)) != null;
var type = Marshal.GetTypeFromCLSID(new Guid(SymWriterGuid));
if (type != null)
{
// This line will throw if pdb generation is not supported.
Activator.CreateInstance(type);
return true;
}
}
catch
{
return false;
}
return false;
}
}
}