From 470a8e7c50570e032040dd22ad6c248148458fb0 Mon Sep 17 00:00:00 2001 From: KoalaBear Date: Wed, 15 Nov 2023 08:40:50 +0100 Subject: [PATCH] - Update to .NET 8 --- .github/workflows/main.yml | 8 ++++---- README.md | 6 +++--- src/Dockerfile | 2 +- .../OpenDirectoryDownloader.GoogleDrive.csproj | 2 +- .../OpenDirectoryDownloader.Shared.csproj | 2 +- .../OpenDirectoryDownloader.Tests.csproj | 2 +- .../OpenDirectoryDownloader.csproj | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 660336ff..47524b8c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,12 +52,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.x' + dotnet-version: '8.0.x' include-prerelease: true - name: Get version info @@ -74,7 +74,7 @@ jobs: run: dotnet test src/OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} - name: Publish with dotnet - run: dotnet publish src/OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net7.0 --runtime ${{ matrix.target }} ${{ matrix.build_args }} -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-${{ steps.get_version.outputs.VERSION }}-${{ matrix.target }}${{ matrix.suffix }} + run: dotnet publish src/OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net8.0 --runtime ${{ matrix.target }} ${{ matrix.build_args }} -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-${{ steps.get_version.outputs.VERSION }}-${{ matrix.target }}${{ matrix.suffix }} - name: Set executable bit (linux only) if: ${{ matrix.os == 'ubuntu-latest' }} diff --git a/README.md b/README.md index 6d1ddac9..8d38d228 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ When using the self-contained releases you don't need to install the .NET (Core) ## Prerequisites -When you are NOT using the self-contained releases, you need to install the latest/current Runtime version of .NET 7: +When you are NOT using the self-contained releases, you need to install the latest/current Runtime version of .NET 8: -https://dotnet.microsoft.com/download/dotnet/7.0/runtime +https://dotnet.microsoft.com/download/dotnet/8.0/runtime ## Usage @@ -187,7 +187,7 @@ It will save the URLs files onto C:\\Scans (windows), or replace with a custom f ## Building -1. Install the newest .NET 7 SDK. +1. Install the newest .NET 8 SDK: https://dotnet.microsoft.com/download/dotnet/8.0 2. `git clone https://github.com/KoalaBear84/OpenDirectoryDownloader` 3. `cd OpenDirectoryDownloader/src` 4. `dotnet build .` diff --git a/src/Dockerfile b/src/Dockerfile index 4466afae..e49a543b 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/runtime:7.0 +FROM mcr.microsoft.com/dotnet/runtime:8.0 WORKDIR /app diff --git a/src/OpenDirectoryDownloader.GoogleDrive/OpenDirectoryDownloader.GoogleDrive.csproj b/src/OpenDirectoryDownloader.GoogleDrive/OpenDirectoryDownloader.GoogleDrive.csproj index a2edd803..c50a24c4 100644 --- a/src/OpenDirectoryDownloader.GoogleDrive/OpenDirectoryDownloader.GoogleDrive.csproj +++ b/src/OpenDirectoryDownloader.GoogleDrive/OpenDirectoryDownloader.GoogleDrive.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 Library diff --git a/src/OpenDirectoryDownloader.Shared/OpenDirectoryDownloader.Shared.csproj b/src/OpenDirectoryDownloader.Shared/OpenDirectoryDownloader.Shared.csproj index 70b48827..40d642bb 100644 --- a/src/OpenDirectoryDownloader.Shared/OpenDirectoryDownloader.Shared.csproj +++ b/src/OpenDirectoryDownloader.Shared/OpenDirectoryDownloader.Shared.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable AnyCPU;x64 diff --git a/src/OpenDirectoryDownloader.Tests/OpenDirectoryDownloader.Tests.csproj b/src/OpenDirectoryDownloader.Tests/OpenDirectoryDownloader.Tests.csproj index ac53d93f..884053f7 100644 --- a/src/OpenDirectoryDownloader.Tests/OpenDirectoryDownloader.Tests.csproj +++ b/src/OpenDirectoryDownloader.Tests/OpenDirectoryDownloader.Tests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 enable false AnyCPU;x64 diff --git a/src/OpenDirectoryDownloader/OpenDirectoryDownloader.csproj b/src/OpenDirectoryDownloader/OpenDirectoryDownloader.csproj index e457e45e..18b6a482 100644 --- a/src/OpenDirectoryDownloader/OpenDirectoryDownloader.csproj +++ b/src/OpenDirectoryDownloader/OpenDirectoryDownloader.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 win-x64;linux-x64;linux-arm;linux-arm64;osx-x64 latest Resources\Application.ico