diff --git a/CHANGELIST.md b/CHANGELIST.md index 49b7e49a..dfde09a8 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -33,6 +33,7 @@ - Support .NET Framework 3.5 - Update compatibility libraries - Support .NET Framework 2.0 +- Support .NET Framework 3.5 in UI.Core ### 3.0.0 (2023-11-14) diff --git a/MPF.Core/Data/Drive.cs b/MPF.Core/Data/Drive.cs index a5ce3ff7..42d901b3 100644 --- a/MPF.Core/Data/Drive.cs +++ b/MPF.Core/Data/Drive.cs @@ -270,7 +270,7 @@ namespace MPF.Core.Data try { #if NET20 || NET35 - List files = Directory.GetFiles(this.Name, "*", SearchOption.TopDirectoryOnly).ToList(); + List files = [.. Directory.GetFiles(this.Name, "*", SearchOption.TopDirectoryOnly)]; #else List files = Directory.EnumerateFiles(this.Name, "*", SearchOption.TopDirectoryOnly).ToList(); #endif diff --git a/MPF.UI.Core/MPF.UI.Core.csproj b/MPF.UI.Core/MPF.UI.Core.csproj index 2913c7d5..3e0eaab2 100644 --- a/MPF.UI.Core/MPF.UI.Core.csproj +++ b/MPF.UI.Core/MPF.UI.Core.csproj @@ -2,7 +2,7 @@ - net40;net452;net462;net472;net48;netcoreapp3.1;net5.0-windows;net6.0-windows;net7.0-windows;net8.0-windows + net35;net40;net452;net462;net472;net48;netcoreapp3.1;net5.0-windows;net6.0-windows;net7.0-windows;net8.0-windows win-x86;win-x64 false latest diff --git a/MPF.UI.Core/Windows/DiscInformationWindow.xaml.cs b/MPF.UI.Core/Windows/DiscInformationWindow.xaml.cs index 823a08de..60a0c16e 100644 --- a/MPF.UI.Core/Windows/DiscInformationWindow.xaml.cs +++ b/MPF.UI.Core/Windows/DiscInformationWindow.xaml.cs @@ -135,7 +135,7 @@ namespace MPF.UI.Core.Windows if (submissionInfo.PartiallyMatchedIDs == null) PartiallyMatchedIDs.Visibility = Visibility.Collapsed; else - PartiallyMatchedIDs.Text = string.Join(", ", submissionInfo.PartiallyMatchedIDs); + PartiallyMatchedIDs.Text = string.Join(", ", submissionInfo.PartiallyMatchedIDs.Select(i => i.ToString()).ToArray()); if (submissionInfo.CopyProtection?.AntiModchip == null) AntiModchip.Visibility = Visibility.Collapsed; if (submissionInfo.TracksAndWriteOffsets?.OtherWriteOffsets == null) diff --git a/MPF.UI.Core/Windows/OptionsWindow.xaml b/MPF.UI.Core/Windows/OptionsWindow.xaml index 9758cd5c..96a94241 100644 --- a/MPF.UI.Core/Windows/OptionsWindow.xaml +++ b/MPF.UI.Core/Windows/OptionsWindow.xaml @@ -308,28 +308,28 @@ -