From 78df6f6583f424b916c1f4283ed832c19917fe2b Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 23 Jul 2023 16:48:44 -0400 Subject: [PATCH] Fix .NET Framework 4.8 build --- CHANGELIST.md | 1 + MPF.Library/InfoTool.cs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELIST.md b/CHANGELIST.md index 1a3bb5d5..3233d94f 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -8,6 +8,7 @@ - Skip extra tracks during checking - Modify the track count on checking - Attempt to match universal hash +- Fix .NET Framework 4.8 build ### 2.6.1 (2023-07-19) diff --git a/MPF.Library/InfoTool.cs b/MPF.Library/InfoTool.cs index 0e803ea5..d996d388 100644 --- a/MPF.Library/InfoTool.cs +++ b/MPF.Library/InfoTool.cs @@ -2324,7 +2324,11 @@ namespace MPF.Library // If we don't have any matches but we have a universal hash if (!info.PartiallyMatchedIDs.Any() && info.CommonDiscInfo.CommentsSpecialFields.ContainsKey(SiteCode.UniversalHash)) { +#if NET48 || NETSTANDARD2_1 + (bool singleFound, List foundIds) = ValidateUniversalHash(wc, info, resultProgress); +#else (bool singleFound, List foundIds) = await ValidateUniversalHash(wc, info, resultProgress); +#endif // Ensure that the hash is found allFound = singleFound;