Skip to content

Commit

Permalink
Migrated to net8
Browse files Browse the repository at this point in the history
Fixed #17
  • Loading branch information
AndreasReitberger committed Sep 16, 2023
1 parent 15c0305 commit 27385a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/MauiSettings/Helper/MauiSettingsObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}");
}
Expand Down Expand Up @@ -110,7 +110,7 @@ public static object GetDefaultValue(MauiSettingBaseAttribute attr, Type setting

return GetTypeDefaultValue(settingType);
}
catch (Exception exc)
catch (Exception)
{
return GetTypeDefaultValue(settingType);
}
Expand Down
9 changes: 5 additions & 4 deletions src/MauiSettings/MauiSettings.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -28,7 +28,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>Settings.Maui</Title>
<Version>1.0.4</Version>
<Version>1.0.5-net8preview</Version>
<Product>Settings.Maui</Product>
<PackageId>SettingsMaui </PackageId>
</PropertyGroup>
Expand All @@ -38,6 +38,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.0-rc.1.9171" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

Expand Down

0 comments on commit 27385a7

Please sign in to comment.