Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public abstract class WindowsBinaryAndPdbSkimmerBase : WindowsBinarySkimmerBase
/// managed and native code require PDBs for the native case but not
/// for managed.
/// </summary>
public virtual bool EnforcePdbLoadForManagedAssemblies => true;
public virtual bool EnforcePdbLoadForManagedAssemblies => false;

public virtual bool LogPdbLoadException => true;

Expand All @@ -50,6 +50,7 @@ public sealed override void Analyze(BinaryAnalyzerContext context)
if (LogPdbLoadException)
{
if (target.Pdb == null &&
!target.PE.IsManagedResourceOnly &&
(!target.PE.IsManaged ||
target.PE.IsMixedMode ||
EnforcePdbLoadForManagedAssemblies))
Expand Down
Loading