fix 'missing assembly' errors raised for some .NET Framework types (#356)
This commit is contained in:
parent
aa13941dd7
commit
82ca09ead7
|
@ -103,7 +103,7 @@ namespace StardewModdingAPI.Framework.ModLoading
|
|||
// detect broken assembly reference
|
||||
foreach (AssemblyNameReference reference in assembly.Definition.MainModule.AssemblyReferences)
|
||||
{
|
||||
if (!this.IsAssemblyLoaded(reference))
|
||||
if (!reference.Name.StartsWith("System.") && !this.IsAssemblyLoaded(reference))
|
||||
{
|
||||
this.Monitor.LogOnce(loggedMessages, $" Broken code in {assembly.File.Name}: reference to missing assembly '{reference.FullName}'.");
|
||||
if (!assumeCompatible)
|
||||
|
|
Loading…
Reference in New Issue