Fix .NET Framework 4.8 build

This commit is contained in:
Matt Nadareski
2023-07-23 16:48:44 -04:00
parent dc8dae4df7
commit 78df6f6583
2 changed files with 5 additions and 0 deletions

View File

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

View File

@@ -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<int> foundIds) = ValidateUniversalHash(wc, info, resultProgress);
#else
(bool singleFound, List<int> foundIds) = await ValidateUniversalHash(wc, info, resultProgress);
#endif
// Ensure that the hash is found
allFound = singleFound;