From 52b4abf38ff01e50a78d71e1fea787a13adaebbd Mon Sep 17 00:00:00 2001 From: redth Date: Tue, 24 Oct 2023 10:53:17 -0400 Subject: [PATCH] Add net8 support --- .github/workflows/main.yml | 14 +++----------- BigIslandBarcode/BigIslandBarcode.csproj | 4 ++-- ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj | 4 ++-- .../ZXing.Net.MAUI.Controls.csproj | 4 ++-- ZXing.Net.MAUI/ZXing.Net.MAUI.csproj | 4 ++-- 5 files changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c511ad5..c277c53 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,11 +19,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.x' - - name: Setup NuGet 5.x - uses: nuget/setup-nuget@v1 - with: - nuget-version: '5.x' + dotnet-version: '8.0.x' - name: Setup MAUI shell: pwsh run: | @@ -49,8 +45,8 @@ jobs: dotnet pack --output ./artifacts --configuration Release -p:PackageVersion=$VERSION ./ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj $pfxPath = Join-Path -Path $pwd -ChildPath "codesigncert.pfx" [IO.File]::WriteAllBytes("$pfxPath", [System.Convert]::FromBase64String($env:CODESIGN_PFX)) - nuget sign .\artifacts\*.nupkg -CertificatePath $pfxPath -Timestamper http://timestamp.entrust.net/TSS/RFC3161sha2TS - + dotnet nuget sign .\artifacts\*.nupkg --certificate-path $pfxPath --timestamper http://timestamp.entrust.net/TSS/RFC3161sha2TS + - name: Artifacts uses: actions/upload-artifact@v1 with: @@ -67,10 +63,6 @@ jobs: uses: actions/download-artifact@v1 with: name: NuGet - - name: Setup .NET Core - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '7.0.x' - name: Push NuGet run: | dotnet nuget push NuGet\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_ORG_API_KEY }} diff --git a/BigIslandBarcode/BigIslandBarcode.csproj b/BigIslandBarcode/BigIslandBarcode.csproj index e3d4617..a7e2599 100644 --- a/BigIslandBarcode/BigIslandBarcode.csproj +++ b/BigIslandBarcode/BigIslandBarcode.csproj @@ -2,8 +2,8 @@ - net7.0-android;net7.0-ios;net7.0-maccatalyst - $(TargetFrameworks);net7.0-windows10.0.19041 + net8.0-android;net8.0-ios;net8.0-maccatalyst + $(TargetFrameworks);net8.0-windows10.0.19041 Exe true true diff --git a/ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj b/ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj index a1eec72..8048bd9 100644 --- a/ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj +++ b/ZXing.Net.MAUI.Comet/ZXing.Net.MAUI.Comet.csproj @@ -1,7 +1,7 @@  - net7.0;net7.0-android;net7.0-maccatalyst;net7.0-ios - $(TargetFrameworks);net7.0-windows10.0.19041 + net7.0;net7.0-android;net7.0-maccatalyst;net7.0-ios;net8.0;net8.0-android;net8.0-maccatalyst;net8.0-ios + $(TargetFrameworks);net7.0-windows10.0.19041;net8.0-windows10.0.19041 ZXing.Net.Maui.Comet ZXing.Net.MAUI Barcode Scanner for .NET MAUI Redth diff --git a/ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj b/ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj index 10c31ed..be23428 100644 --- a/ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj +++ b/ZXing.Net.MAUI.Controls/ZXing.Net.MAUI.Controls.csproj @@ -1,7 +1,7 @@  - net7.0;net7.0-android;net7.0-maccatalyst;net7.0-ios - $(TargetFrameworks);net7.0-windows10.0.19041 + net7.0;net7.0-android;net7.0-maccatalyst;net7.0-ios;net8.0;net8.0-android;net8.0-maccatalyst;net8.0-ios + $(TargetFrameworks);net7.0-windows10.0.19041;net8.0-windows10.0.19041 ZXing.Net.Maui.Controls ZXing.Net.MAUI Barcode Scanner for .NET MAUI Redth diff --git a/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj b/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj index c3fa202..c4bb09a 100644 --- a/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj +++ b/ZXing.Net.MAUI/ZXing.Net.MAUI.csproj @@ -1,7 +1,7 @@  - net7.0;net7.0-android;net7.0-maccatalyst;net7.0-ios - $(TargetFrameworks);net7.0-windows10.0.19041 + net7.0;net7.0-android;net7.0-maccatalyst;net7.0-ios;net8.0;net8.0-android;net8.0-maccatalyst;net8.0-ios + $(TargetFrameworks);net7.0-windows10.0.19041;net8.0-windows10.0.19041 ZXing.Net.Maui ZXing.Net.MAUI Barcode Scanner for .NET MAUI Redth