diff --git a/src/xunit.runner.visualstudio/Utility/AssemblyResolution/AssemblyHelper_Desktop.cs b/src/xunit.runner.visualstudio/Utility/AssemblyResolution/AssemblyHelper_Desktop.cs index d3be0d9..7b50139 100644 --- a/src/xunit.runner.visualstudio/Utility/AssemblyResolution/AssemblyHelper_Desktop.cs +++ b/src/xunit.runner.visualstudio/Utility/AssemblyResolution/AssemblyHelper_Desktop.cs @@ -1,7 +1,7 @@ #if NETFRAMEWORK using System; -using System.Collections.Generic; +using System.Collections.Concurrent; using System.IO; using System.Reflection; using Xunit.Abstractions; @@ -19,7 +19,7 @@ class AssemblyHelper : LongLivedMarshalByRefObject, IDisposable readonly string directory; readonly IMessageSink? internalDiagnosticsMessageSink; - readonly Dictionary lookupCache = new(); + readonly ConcurrentDictionary lookupCache = new(); /// /// Constructs an instance using the given for resolution.