From 5981a5bc33fd38010a78619998114f6bbd52d4e2 Mon Sep 17 00:00:00 2001 From: SuRGeoNix Date: Fri, 23 Jul 2021 19:41:36 +0300 Subject: [PATCH] - Converting solution/projects to .NET 5 - Fixes .NET 5 hanging issues - FlyleafLib.Controls.WPF: Updating MaterialDesignThemes to 4.2.0 --- .editorconfig | 7 +- FlyleafLib.Controls.WPF/AssemblyInfo.cs | 10 + FlyleafLib.Controls.WPF/Flyleaf.xaml | 8 +- FlyleafLib.Controls.WPF/Flyleaf.xaml.cs | 14 +- .../FlyleafLib.Controls.WPF.csproj | 160 ++---- FlyleafLib.Controls.WPF/MainDictionary.xaml | 23 +- .../Properties/AssemblyInfo.cs | 55 -- .../Properties/Resources.Designer.cs | 63 --- .../Properties/Resources.resx | 117 ---- .../Properties/Settings.Designer.cs | 26 - .../Properties/Settings.settings | 7 - .../Properties/launchSettings.json | 8 + FlyleafLib.Controls.WPF/app.config | 2 - FlyleafLib.Controls.WPF/packages.config | 7 - .../FlyleafLib.Plugins.BitSwarm.csproj | 100 +--- .../Properties/AssemblyInfo.cs | 36 -- FlyleafLib.Plugins.BitSwarm/app.config | 11 - FlyleafLib.Plugins.BitSwarm/packages.config | 12 - .../FlyleafLib.Plugins.OpenSubtitles.csproj | 77 +-- .../Properties/AssemblyInfo.cs | 36 -- FlyleafLib.Plugins.OpenSubtitles/app.config | 2 - .../packages.config | 4 - .../FlyleafLib.Plugins.YoutubeDL.csproj | 79 +-- .../Properties/AssemblyInfo.cs | 36 -- FlyleafLib.Plugins.YoutubeDL/app.config | 2 - FlyleafLib.Plugins.YoutubeDL/packages.config | 4 - FlyleafLib.sln | 119 +++-- FlyleafLib/AssemblyInfo.cs | 10 + FlyleafLib/AudioMaster.cs | 18 +- FlyleafLib/Controls/WPF/FlyleafWindow.cs | 18 +- FlyleafLib/Controls/WPF/VideoView.cs | 2 +- FlyleafLib/FlyleafLib.csproj | 192 ++----- FlyleafLib/FlyleafLib.xml | 502 ++++++++++++++++++ FlyleafLib/Master.cs | 4 +- .../MediaContext/DecoderContext.cs | 2 +- .../MediaDecoder/AudioDecoder.cs | 2 +- .../MediaDecoder/DecoderBase.cs | 7 +- .../MediaDecoder/SubtitlesDecoder.cs | 2 +- .../MediaDecoder/VideoAcceleration.cs | 2 +- .../MediaDecoder/VideoDecoder.cs | 85 ++- .../MediaDemuxer/CustomIOContext.cs | 8 +- .../MediaDemuxer/DemuxerBase.cs | 47 +- FlyleafLib/MediaPlayer/AudioPlayer.cs | 4 +- FlyleafLib/MediaPlayer/Player.cs | 23 +- FlyleafLib/MediaRenderer/Renderer.cs | 12 +- FlyleafLib/Properties/AssemblyInfo.cs | 46 -- FlyleafLib/Properties/Resources.Designer.cs | 63 --- FlyleafLib/Properties/Resources.resx | 120 ----- FlyleafLib/Utils.cs | 9 +- FlyleafLib/app.config | 2 - FlyleafLib/packages.config | 11 - README.md | 2 +- WinForms Sample (Basic)/App.config | 6 - WinForms Sample (Basic)/BasicNaked.cs | 2 +- WinForms Sample (Basic)/Program.cs | 6 +- .../Properties/AssemblyInfo.cs | 36 -- .../Properties/Resources.Designer.cs | 70 --- .../Properties/Resources.resx | 117 ---- .../Properties/Settings.Designer.cs | 29 - .../Properties/Settings.settings | 7 - .../WinForms Sample (Basic).csproj | 150 +----- WinForms Sample (Basic)/packages.config | 7 - Wpf Samples/App.config | 11 - Wpf Samples/AssemblyInfo.cs | 10 + Wpf Samples/Flyleaf.png | Bin 4427 -> 0 bytes Wpf Samples/Properties/AssemblyInfo.cs | 55 -- Wpf Samples/Properties/Resources.Designer.cs | 70 --- Wpf Samples/Properties/Resources.resx | 117 ---- Wpf Samples/Properties/Settings.Designer.cs | 29 - Wpf Samples/Properties/Settings.settings | 7 - Wpf Samples/Sample1_Basic.xaml | 2 +- Wpf Samples/Sample1_Basic.xaml.cs | 1 - Wpf Samples/Sample3_MultiPlayer.xaml | 4 +- Wpf Samples/Wpf Samples.csproj | 207 +------- 74 files changed, 896 insertions(+), 2265 deletions(-) create mode 100644 FlyleafLib.Controls.WPF/AssemblyInfo.cs delete mode 100644 FlyleafLib.Controls.WPF/Properties/AssemblyInfo.cs delete mode 100644 FlyleafLib.Controls.WPF/Properties/Resources.Designer.cs delete mode 100644 FlyleafLib.Controls.WPF/Properties/Resources.resx delete mode 100644 FlyleafLib.Controls.WPF/Properties/Settings.Designer.cs delete mode 100644 FlyleafLib.Controls.WPF/Properties/Settings.settings create mode 100644 FlyleafLib.Controls.WPF/Properties/launchSettings.json delete mode 100644 FlyleafLib.Controls.WPF/app.config delete mode 100644 FlyleafLib.Controls.WPF/packages.config delete mode 100644 FlyleafLib.Plugins.BitSwarm/Properties/AssemblyInfo.cs delete mode 100644 FlyleafLib.Plugins.BitSwarm/app.config delete mode 100644 FlyleafLib.Plugins.BitSwarm/packages.config delete mode 100644 FlyleafLib.Plugins.OpenSubtitles/Properties/AssemblyInfo.cs delete mode 100644 FlyleafLib.Plugins.OpenSubtitles/app.config delete mode 100644 FlyleafLib.Plugins.OpenSubtitles/packages.config delete mode 100644 FlyleafLib.Plugins.YoutubeDL/Properties/AssemblyInfo.cs delete mode 100644 FlyleafLib.Plugins.YoutubeDL/app.config delete mode 100644 FlyleafLib.Plugins.YoutubeDL/packages.config create mode 100644 FlyleafLib/AssemblyInfo.cs create mode 100644 FlyleafLib/FlyleafLib.xml delete mode 100644 FlyleafLib/Properties/AssemblyInfo.cs delete mode 100644 FlyleafLib/Properties/Resources.Designer.cs delete mode 100644 FlyleafLib/Properties/Resources.resx delete mode 100644 FlyleafLib/app.config delete mode 100644 FlyleafLib/packages.config delete mode 100644 WinForms Sample (Basic)/App.config delete mode 100644 WinForms Sample (Basic)/Properties/AssemblyInfo.cs delete mode 100644 WinForms Sample (Basic)/Properties/Resources.Designer.cs delete mode 100644 WinForms Sample (Basic)/Properties/Resources.resx delete mode 100644 WinForms Sample (Basic)/Properties/Settings.Designer.cs delete mode 100644 WinForms Sample (Basic)/Properties/Settings.settings delete mode 100644 WinForms Sample (Basic)/packages.config delete mode 100644 Wpf Samples/App.config create mode 100644 Wpf Samples/AssemblyInfo.cs delete mode 100644 Wpf Samples/Flyleaf.png delete mode 100644 Wpf Samples/Properties/AssemblyInfo.cs delete mode 100644 Wpf Samples/Properties/Resources.Designer.cs delete mode 100644 Wpf Samples/Properties/Resources.resx delete mode 100644 Wpf Samples/Properties/Settings.Designer.cs delete mode 100644 Wpf Samples/Properties/Settings.settings diff --git a/.editorconfig b/.editorconfig index dd2b5504..5cb05b9f 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,7 @@ [*.cs] -# Default severity for analyzer diagnostics with category 'Style' -dotnet_analyzer_diagnostic.category-Style.severity = none +# CS1591: Missing XML comment for publicly visible type or member +dotnet_diagnostic.CS1591.severity = none + +# IDE0055: Fix formatting +dotnet_diagnostic.IDE0055.severity = none \ No newline at end of file diff --git a/FlyleafLib.Controls.WPF/AssemblyInfo.cs b/FlyleafLib.Controls.WPF/AssemblyInfo.cs new file mode 100644 index 00000000..8b5504ec --- /dev/null +++ b/FlyleafLib.Controls.WPF/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/FlyleafLib.Controls.WPF/Flyleaf.xaml b/FlyleafLib.Controls.WPF/Flyleaf.xaml index 3ed65311..c3807e23 100644 --- a/FlyleafLib.Controls.WPF/Flyleaf.xaml +++ b/FlyleafLib.Controls.WPF/Flyleaf.xaml @@ -1,4 +1,4 @@ - - + @@ -69,7 +69,7 @@ - + @@ -387,7 +387,7 @@ - +