From 6c9c9dd8c004652e5c11d0e6da38325d3d44b6b3 Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 11 Oct 2024 07:05:40 +0200 Subject: [PATCH] Fixed build issues --- .github/workflows/build_publish.yml | 4 +-- common.props | 13 +++---- framework.maui.props | 35 +++++++++++++++++++ .../MauiSettings.Example.csproj | 32 ++--------------- src/MauiSettings.sln | 1 + src/MauiSettings/MauiSettings.csproj | 16 ++------- 6 files changed, 48 insertions(+), 53 deletions(-) create mode 100644 framework.maui.props diff --git a/.github/workflows/build_publish.yml b/.github/workflows/build_publish.yml index c48f39e..ef1698d 100644 --- a/.github/workflows/build_publish.yml +++ b/.github/workflows/build_publish.yml @@ -22,7 +22,7 @@ jobs: with: dotnet-version: 8.0.x - name: Build - run: dotnet build --configuration Release + run: dotnet build --configuration Release ./src - name: Package NuGets shell: pwsh run: | @@ -34,7 +34,7 @@ jobs: echo "PACKAGE VERSION: $VERSION" New-Item -ItemType Directory -Force -Path .\artifacts -# dotnet pack --output ./artifacts --configuration Release -p:PackageVersion=$VERSION ./src/MauiSettings/MauiSettings.csproj + dotnet pack --output ./artifacts --configuration Release -p:PackageVersion=$VERSION ./src/MauiSettings/MauiSettings.csproj - name: Artifacts uses: actions/upload-artifact@v4 diff --git a/common.props b/common.props index 7d58532..c330fb4 100644 --- a/common.props +++ b/common.props @@ -1,12 +1,7 @@ + - net8.0-android;net8.0-ios;net8.0-maccatalyst - $(TargetFrameworks);net8.0-windows10.0.19041.0 - - - 10.0.19041.41 - 1.0.10 ar_128.png en @@ -20,7 +15,6 @@ Andreas Reitberger Andreas Reitberger 12 - false enable @@ -37,6 +31,9 @@ - + + + + diff --git a/framework.maui.props b/framework.maui.props new file mode 100644 index 0000000..3b30a1b --- /dev/null +++ b/framework.maui.props @@ -0,0 +1,35 @@ + + + + net8.0-android + + $(TargetFrameworks);net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041.0 + + + + 10.0.19041.41 + + + true + true + enable + false + true + + + true + + 14.2 + 14.0 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + true + + diff --git a/src/MauiSettings.Example/MauiSettings.Example.csproj b/src/MauiSettings.Example/MauiSettings.Example.csproj index 240fff2..4f8ac66 100644 --- a/src/MauiSettings.Example/MauiSettings.Example.csproj +++ b/src/MauiSettings.Example/MauiSettings.Example.csproj @@ -1,24 +1,8 @@  + - net8.0-android;net8.0-ios;net8.0-maccatalyst - $(TargetFrameworks);net8.0-windows10.0.19041.0 - - - 10.0.19041.41 - - - Exe - MauiSettings.Example - true - true - enable - enable - + MauiSettings Example @@ -28,13 +12,6 @@ 1.0 1 - - 11.0 - 13.1 - 21.0 - 10.0.17763.0 - 10.0.17763.0 - 6.5 @@ -56,10 +33,7 @@ - - - - + diff --git a/src/MauiSettings.sln b/src/MauiSettings.sln index bc12285..02e5eef 100644 --- a/src/MauiSettings.sln +++ b/src/MauiSettings.sln @@ -10,6 +10,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3CBCD659-10AB-4B69-B12E-48998DEE148E}" ProjectSection(SolutionItems) = preProject ..\common.props = ..\common.props + ..\framework.maui.props = ..\framework.maui.props nuget.config = nuget.config EndProjectSection EndProject diff --git a/src/MauiSettings/MauiSettings.csproj b/src/MauiSettings/MauiSettings.csproj index 7782a36..297a98c 100644 --- a/src/MauiSettings/MauiSettings.csproj +++ b/src/MauiSettings/MauiSettings.csproj @@ -1,18 +1,8 @@  - true - true - enable - false - enable - - 14.2 - 14.0 - 21.0 - 10.0.17763.0 - 10.0.17763.0 - 6.5 + $(TargetFrameworks);net8.0 + Library AndreasReitberger.Maui A .NET MAUI library to store settings locally and in the cloud @@ -29,8 +19,6 @@ - -