diff --git a/src/BizHawk.Client.Common/movie/tasproj/TasLagLog.cs b/src/BizHawk.Client.Common/movie/tasproj/TasLagLog.cs
index ef88015c5f..e54713c7c1 100644
--- a/src/BizHawk.Client.Common/movie/tasproj/TasLagLog.cs
+++ b/src/BizHawk.Client.Common/movie/tasproj/TasLagLog.cs
@@ -1,5 +1,8 @@
using System.Collections.Generic;
using System.IO;
+#if NET8_0_OR_GREATER
+using System.Linq;
+#endif
using BizHawk.Common.CollectionExtensions;
diff --git a/src/BizHawk.Common/Extensions/CollectionExtensions.cs b/src/BizHawk.Common/Extensions/CollectionExtensions.cs
index d58397ba81..e37ac7f988 100644
--- a/src/BizHawk.Common/Extensions/CollectionExtensions.cs
+++ b/src/BizHawk.Common/Extensions/CollectionExtensions.cs
@@ -302,9 +302,11 @@ namespace BizHawk.Common.CollectionExtensions
return str.Substring(startIndex: offset, length: length);
}
+#if !NET8_0_OR_GREATER
/// shallow clone
- public static Dictionary ToDictionary(this IEnumerable> list)
+ public static Dictionary ToDictionary(this IEnumerable> list) where TKey : notnull
=> list.ToDictionary(static kvp => kvp.Key, static kvp => kvp.Value);
+#endif
public static bool IsSortedAsc(this IReadOnlyList list)
where T : IComparable