Skip to content

Commit

Permalink
Disable file system analyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Rok Rode committed Nov 10, 2024
1 parent 19cffb9 commit 97bc82b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Ben.Demystifier/Internal/PortablePdbReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ namespace System.Diagnostics.Internal
// Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.StackTrace.Sources/StackFrame/PortablePdbReader.cs
#if NET6_0_OR_GREATER
[RequiresUnreferencedCode(Constants.TrimWarning)]
#endif
#endif
// Allow direct file system usage
#pragma warning disable SN0001
internal class PortablePdbReader : IDisposable
{
private readonly Dictionary<string, MetadataReaderProvider> _cache =
Expand Down Expand Up @@ -145,4 +147,5 @@ public void Dispose()
_cache.Clear();
}
}
#pragma warning restore SN0001
}

0 comments on commit 97bc82b

Please sign in to comment.