From aa9eb8b3401d9492c469576ed5360a2e29b376e2 Mon Sep 17 00:00:00 2001 From: Yuriy Holembyovskyy Date: Mon, 8 Dec 2025 19:45:14 +0200 Subject: [PATCH 1/2] Update project files for .NET 10 compatibility and remove obsolete solution file --- src/FastPopups.sln | 33 ------------------- src/FastPopups.slnx | 4 +++ src/Lib/FastPopups.csproj | 9 ++--- .../Platforms/Android/MauiPopup.android.cs | 3 +- src/Sample/Resources/Styles/Styles.xaml | 14 +------- src/Sample/SampleApp.csproj | 15 +++++---- src/Sample/Views/NavigationStackPopup.xaml.cs | 2 +- 7 files changed, 21 insertions(+), 59 deletions(-) delete mode 100644 src/FastPopups.sln create mode 100644 src/FastPopups.slnx diff --git a/src/FastPopups.sln b/src/FastPopups.sln deleted file mode 100644 index 2fecae9..0000000 --- a/src/FastPopups.sln +++ /dev/null @@ -1,33 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.14.36203.30 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FastPopups", "Lib\FastPopups.csproj", "{D1C7A25F-A0F4-5FCB-3C4A-925EB50C86CC}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleApp", "Sample\SampleApp.csproj", "{424A2DEE-CECD-4F9A-C294-5F1C35E1D543}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D1C7A25F-A0F4-5FCB-3C4A-925EB50C86CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D1C7A25F-A0F4-5FCB-3C4A-925EB50C86CC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D1C7A25F-A0F4-5FCB-3C4A-925EB50C86CC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D1C7A25F-A0F4-5FCB-3C4A-925EB50C86CC}.Release|Any CPU.Build.0 = Release|Any CPU - {424A2DEE-CECD-4F9A-C294-5F1C35E1D543}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {424A2DEE-CECD-4F9A-C294-5F1C35E1D543}.Debug|Any CPU.Build.0 = Debug|Any CPU - {424A2DEE-CECD-4F9A-C294-5F1C35E1D543}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {424A2DEE-CECD-4F9A-C294-5F1C35E1D543}.Release|Any CPU.ActiveCfg = Release|Any CPU - {424A2DEE-CECD-4F9A-C294-5F1C35E1D543}.Release|Any CPU.Build.0 = Release|Any CPU - {424A2DEE-CECD-4F9A-C294-5F1C35E1D543}.Release|Any CPU.Deploy.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {B19A6BE2-4681-40FD-87D5-4AEC5AA07B5C} - EndGlobalSection -EndGlobal diff --git a/src/FastPopups.slnx b/src/FastPopups.slnx new file mode 100644 index 0000000..4488a8a --- /dev/null +++ b/src/FastPopups.slnx @@ -0,0 +1,4 @@ + + + + diff --git a/src/Lib/FastPopups.csproj b/src/Lib/FastPopups.csproj index eb47fad..4eb6f08 100644 --- a/src/Lib/FastPopups.csproj +++ b/src/Lib/FastPopups.csproj @@ -1,9 +1,10 @@ - + - net9.0;net9.0-android;net9.0-ios;net9.0-maccatalyst;net9.0-windows10.0.19041.0 + net10.0;net10.0-android;net10.0-ios;net10.0-maccatalyst;net10.0-windows10.0.19041.0 Library true + true true enable enable @@ -29,8 +30,8 @@ - - + + diff --git a/src/Lib/Platforms/Android/MauiPopup.android.cs b/src/Lib/Platforms/Android/MauiPopup.android.cs index 75b740c..9de7e54 100644 --- a/src/Lib/Platforms/Android/MauiPopup.android.cs +++ b/src/Lib/Platforms/Android/MauiPopup.android.cs @@ -622,7 +622,7 @@ Size GetScreenSize(IWindowManager windowManager) /// The status bar height in DIPs. double GetStatusBarHeight(Context context) { - double heightPixels = 0; + //double heightPixels = 0; //if (OperatingSystem.IsAndroidVersionAtLeast(30)) //{ @@ -660,7 +660,6 @@ double GetNavigationBarHeight(IWindowManager windowManager) var windowMetrics = windowManager.CurrentWindowMetrics; var insets = windowMetrics.WindowInsets; var windowInsets = insets.GetInsetsIgnoringVisibility(WindowInsets.Type.SystemBars()); - var windowInsets2 = insets.HasSystemWindowInsets; var windowWidth = windowMetrics.Bounds.Width(); var windowHeight = windowMetrics.Bounds.Height(); diff --git a/src/Sample/Resources/Styles/Styles.xaml b/src/Sample/Resources/Styles/Styles.xaml index 86f574d..37507ae 100644 --- a/src/Sample/Resources/Styles/Styles.xaml +++ b/src/Sample/Resources/Styles/Styles.xaml @@ -130,14 +130,7 @@ - - - + - -