diff --git a/APIs/MixItUp.API/MixItUp.API.csproj b/APIs/MixItUp.API/MixItUp.API.csproj index 8e5d95c2b..c67437935 100644 --- a/APIs/MixItUp.API/MixItUp.API.csproj +++ b/APIs/MixItUp.API/MixItUp.API.csproj @@ -1,7 +1,7 @@  - net10.0 + net8.0 enable enable MixItUp.API diff --git a/MixItUp.Base/MixItUp.Base.csproj b/MixItUp.Base/MixItUp.Base.csproj index 11035e2c0..878333470 100644 --- a/MixItUp.Base/MixItUp.Base.csproj +++ b/MixItUp.Base/MixItUp.Base.csproj @@ -1,7 +1,7 @@ - net10.0 + net8.0 MixItUp.Base 1.6.0.0 1.6.0.0 diff --git a/MixItUp.Base/Util/ListExtensions.cs b/MixItUp.Base/Util/ListExtensions.cs index e9b95c044..5afdcca6e 100644 --- a/MixItUp.Base/Util/ListExtensions.cs +++ b/MixItUp.Base/Util/ListExtensions.cs @@ -38,21 +38,21 @@ public static void MoveDown(this IList list, T item) } } - //public static IEnumerable Shuffle(this IEnumerable list) - //{ - // Random random = new Random(); - // var l = new SortedList(); - // foreach (var i in list.ToArray()) - // { - // var key = random.Next(); - // while (l.ContainsKey(key)) - // { - // key = random.Next(); - // } - // l.Add(key, i); - // } - // return l.Values; - //} + public static IEnumerable Shuffle(this IEnumerable list) + { + Random random = new Random(); + var l = new SortedList(); + foreach (var i in list.ToArray()) + { + var key = random.Next(); + while (l.ContainsKey(key)) + { + key = random.Next(); + } + l.Add(key, i); + } + return l.Values; + } public static T RemoveFirst(this IList list) { diff --git a/MixItUp.Reporter/MixItUp.Reporter.csproj b/MixItUp.Reporter/MixItUp.Reporter.csproj index d995501ec..842021a69 100644 --- a/MixItUp.Reporter/MixItUp.Reporter.csproj +++ b/MixItUp.Reporter/MixItUp.Reporter.csproj @@ -1,7 +1,7 @@  - net10.0-windows + net8.0-windows win-x64 true WinExe diff --git a/MixItUp.SignalR.Client/MixItUp.SignalR.Client.csproj b/MixItUp.SignalR.Client/MixItUp.SignalR.Client.csproj index 2d04d4622..54af03da0 100644 --- a/MixItUp.SignalR.Client/MixItUp.SignalR.Client.csproj +++ b/MixItUp.SignalR.Client/MixItUp.SignalR.Client.csproj @@ -1,7 +1,7 @@ - net10.0 + net8.0 MixItUp.SignalR.Client 1.6.0.0 1.6.0.0 diff --git a/MixItUp.WPF/MixItUp.WPF.csproj b/MixItUp.WPF/MixItUp.WPF.csproj index 896afb53f..b8eddf652 100644 --- a/MixItUp.WPF/MixItUp.WPF.csproj +++ b/MixItUp.WPF/MixItUp.WPF.csproj @@ -1,6 +1,6 @@  - net10.0-windows + net8.0-windows win-x64 true WinExe