From 8d6a5984feae0903d3eaed3b130281187991cbee Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Tue, 14 Nov 2023 19:30:35 -0600 Subject: [PATCH] build: Upgrade to .NET 8 in ci, docs, and build --- .github/workflows/inspect-code.yml | 4 ++-- .github/workflows/reusable-build.yml | 2 +- .github/workflows/sonarcloud.yml | 2 +- .vscode/launch.json | 4 ++-- CONTRIBUTING.md | 2 +- docker/Dockerfile | 2 +- src/Directory.Build.props | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/inspect-code.yml b/.github/workflows/inspect-code.yml index 7521e742..ae3a2bbc 100644 --- a/.github/workflows/inspect-code.yml +++ b/.github/workflows/inspect-code.yml @@ -30,7 +30,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Restore run: dotnet restore src @@ -55,7 +55,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Install Resharper Tools run: dotnet tool install -g JetBrains.ReSharper.GlobalTools diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index a34e3a15..463b93cf 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -14,7 +14,7 @@ on: type: boolean env: - dotnetVersion: "7.0.x" + dotnetVersion: 8.0.x jobs: build: diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 622fa591..5717c24f 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -13,7 +13,7 @@ on: - "src/**" env: - dotnetVersion: "7.0.x" + dotnetVersion: 8.0.x jobs: sonarcloud: diff --git a/.vscode/launch.json b/.vscode/launch.json index 369cd9a5..c705316c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,11 +6,11 @@ "type": "coreclr", "request": "launch", "preLaunchTask": "build", - "program": "${workspaceFolder}/src/Recyclarr.Cli/bin/Debug/net7.0/recyclarr", + "program": "${workspaceFolder}/src/Recyclarr.Cli/bin/Debug/net8.0/recyclarr", "args": [ "radarr" ], - "cwd": "${workspaceFolder}/src/Recyclarr.Cli/bin/Debug/net7.0/", + "cwd": "${workspaceFolder}/src/Recyclarr.Cli/bin/Debug/net8.0/", "stopAtEntry": false, "console": "internalConsole" } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5d6f82a9..98647a11 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -24,7 +24,7 @@ that everyone should follow. The following tools are required: -- .NET SDK 7.0 and tooling (e.g. `dotnet`) +- .NET SDK 8.0 and tooling (e.g. `dotnet`) - Powershell v5.1 or greater - Docker CLI (Docker Desktop on Windows) diff --git a/docker/Dockerfile b/docker/Dockerfile index 3cb6fd87..bbab0f7f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/runtime:7.0-alpine as base +FROM mcr.microsoft.com/dotnet/runtime:8.0-alpine as base FROM base AS base-arm ENV RUNTIME=linux-musl-arm diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 8d10c9f9..333301e5 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,6 +1,6 @@ - net7.0 + net8.0 enable 9999 enable