diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-14 14:15:50 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-14 14:15:50 -0400 |
commit | da630efc1d5c95816493c2969736ae883e723757 (patch) | |
tree | b460810bc2702facf16bca9a263d53a2380a2c6c /src/StardewModdingAPI.AssemblyRewriters/PlatformAssemblyMap.cs | |
parent | 02a4c40814caf26f21fc9afd9c64afd639da462f (diff) | |
download | SMAPI-da630efc1d5c95816493c2969736ae883e723757.tar.gz SMAPI-da630efc1d5c95816493c2969736ae883e723757.tar.bz2 SMAPI-da630efc1d5c95816493c2969736ae883e723757.zip |
downgrade to .NET Framework 4.0 for better compatibility on Windows 7–8.1
Diffstat (limited to 'src/StardewModdingAPI.AssemblyRewriters/PlatformAssemblyMap.cs')
-rw-r--r-- | src/StardewModdingAPI.AssemblyRewriters/PlatformAssemblyMap.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StardewModdingAPI.AssemblyRewriters/PlatformAssemblyMap.cs b/src/StardewModdingAPI.AssemblyRewriters/PlatformAssemblyMap.cs index fce2b187..3ca90149 100644 --- a/src/StardewModdingAPI.AssemblyRewriters/PlatformAssemblyMap.cs +++ b/src/StardewModdingAPI.AssemblyRewriters/PlatformAssemblyMap.cs @@ -49,7 +49,7 @@ namespace StardewModdingAPI.AssemblyRewriters // cache assembly metadata this.Targets = targetAssemblies; this.TargetReferences = this.Targets.ToDictionary(assembly => assembly, assembly => AssemblyNameReference.Parse(assembly.FullName)); - this.TargetModules = this.Targets.ToDictionary(assembly => assembly, assembly => ModuleDefinition.ReadModule(assembly.Modules.Single().FullyQualifiedName)); + this.TargetModules = this.Targets.ToDictionary(assembly => assembly, assembly => ModuleDefinition.ReadModule(assembly.GetModules().Single().FullyQualifiedName)); } } } |