fix 'missing assembly' errors raised for some .NET Framework types (#356)

This commit is contained in:
Jesse Plamondon-Willard 2018-07-02 20:41:21 -04:00
parent aa13941dd7
commit 82ca09ead7
1 changed files with 1 additions and 1 deletions

View File

@ -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)