Skip to content

Commit

Permalink
Ignore assemblies that cannot be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Oct 16, 2020
1 parent 9840b76 commit 49a216d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Libplanet.Analyzers.Tests/Verifiers/DiagnosticVerifier.Helper.cs
Expand Up @@ -224,7 +224,17 @@ void Register(Assembly assembly)
{
if (!registry.ContainsKey(@ref.FullName))
{
Register(Assembly.Load(@ref));
Assembly dep;
try
{
dep = Assembly.Load(@ref);
}
catch (FileNotFoundException)
{
continue;
}

Register(dep);
}
}
}
Expand Down

0 comments on commit 49a216d

Please sign in to comment.