Skip to content

Commit

Permalink
Fixed bug where a net6 plugin is marked as net35
Browse files Browse the repository at this point in the history
  • Loading branch information
HAHOOS committed Aug 31, 2024
1 parent a5ca960 commit a0b3d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MAUHelper/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public override void OnPreInitialization()
if (pluginAssembly != null)
{
LoggerInstance.Msg("MAU found, checking if correct version");
bool isFramework = pluginAssembly.MainModule.AssemblyReferences.Where(x => x.Name == "mscorlib") != null;
bool isFramework = pluginAssembly.MainModule.AssemblyReferences.Where(x => x.Name == "mscorlib").Count() > 0;
LoggerInstance.Msg("Current MAU version: " + (isFramework ? "net35" : "net6"));
if (isFramework && isNet6)
{
Expand Down

0 comments on commit a0b3d15

Please sign in to comment.