From 27385a78a30d727121e8ef78f3f2215ff9f45746 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sat, 16 Sep 2023 11:06:34 +0200 Subject: [PATCH 1/3] Migrated to `net8` Fixed #17 --- src/MauiSettings/Helper/MauiSettingsObjectHelper.cs | 6 +++--- src/MauiSettings/MauiSettings.csproj | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/MauiSettings/Helper/MauiSettingsObjectHelper.cs b/src/MauiSettings/Helper/MauiSettingsObjectHelper.cs index 2a66079..b738c6f 100644 --- a/src/MauiSettings/Helper/MauiSettingsObjectHelper.cs +++ b/src/MauiSettings/Helper/MauiSettingsObjectHelper.cs @@ -60,9 +60,9 @@ public static void SetSettingValue(MemberInfo memberInfo, object settings, objec return; } } - catch (Exception exc) + catch (Exception) { - + } throw new NotSupportedException($"MauiSettings: The type '{memberInfo.GetType()}' is not supported for the field: {memberInfo.Name}"); } @@ -110,7 +110,7 @@ public static object GetDefaultValue(MauiSettingBaseAttribute attr, Type setting return GetTypeDefaultValue(settingType); } - catch (Exception exc) + catch (Exception) { return GetTypeDefaultValue(settingType); } diff --git a/src/MauiSettings/MauiSettings.csproj b/src/MauiSettings/MauiSettings.csproj index f23e17d..708de8c 100644 --- a/src/MauiSettings/MauiSettings.csproj +++ b/src/MauiSettings/MauiSettings.csproj @@ -1,10 +1,10 @@ - net7.0;net7.0-android;net7.0-ios;net7.0-maccatalyst - $(TargetFrameworks);net7.0-windows10.0.19041.0 + net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 - + true true enable @@ -28,7 +28,7 @@ README.md True Settings.Maui - 1.0.4 + 1.0.5-net8preview Settings.Maui SettingsMaui @@ -38,6 +38,7 @@ + From 0f4812617acb753cc117e1bb9aa281532fdf52bb Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 20 Sep 2023 08:31:21 +0200 Subject: [PATCH 2/3] Added `net8-nightly` nuget source --- src/MauiSettings.sln | 7 ++++++- src/MauiSettings/MauiSettings.csproj | 5 +++-- src/nuget.config | 8 ++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 src/nuget.config diff --git a/src/MauiSettings.sln b/src/MauiSettings.sln index ce03c4d..115d1bf 100644 --- a/src/MauiSettings.sln +++ b/src/MauiSettings.sln @@ -3,7 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.3.32519.111 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MauiSettings", "MauiSettings\MauiSettings.csproj", "{9A79D717-2C07-48A4-A78D-BD252E9BCA25}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MauiSettings", "MauiSettings\MauiSettings.csproj", "{9A79D717-2C07-48A4-A78D-BD252E9BCA25}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Projektmappenelemente", "Projektmappenelemente", "{26232A22-4BBC-4509-99A5-987CE67F1882}" + ProjectSection(SolutionItems) = preProject + nuget.config = nuget.config + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/src/MauiSettings/MauiSettings.csproj b/src/MauiSettings/MauiSettings.csproj index 708de8c..81abc25 100644 --- a/src/MauiSettings/MauiSettings.csproj +++ b/src/MauiSettings/MauiSettings.csproj @@ -38,8 +38,9 @@ - - + + + diff --git a/src/nuget.config b/src/nuget.config new file mode 100644 index 0000000..2b3587d --- /dev/null +++ b/src/nuget.config @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file From 68e48098604676a31501ab92da496bc0ebf3bf8e Mon Sep 17 00:00:00 2001 From: Andreas Date: Tue, 14 Nov 2023 17:52:10 +0100 Subject: [PATCH 3/3] Update MauiSettings.csproj Updated version --- src/MauiSettings/MauiSettings.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MauiSettings/MauiSettings.csproj b/src/MauiSettings/MauiSettings.csproj index 81abc25..039a980 100644 --- a/src/MauiSettings/MauiSettings.csproj +++ b/src/MauiSettings/MauiSettings.csproj @@ -28,7 +28,7 @@ README.md True Settings.Maui - 1.0.5-net8preview + 1.0.5 Settings.Maui SettingsMaui