From 6b5612c5ce53acf5174e13d82cbd1945687491ed Mon Sep 17 00:00:00 2001 From: Fraser Molyneux Date: Fri, 15 Nov 2024 19:16:21 +0000 Subject: [PATCH] Update to .NET 9 --- .devcontainer/devcontainer.json | 2 +- .github/workflows/codequality.yml | 2 +- .github/workflows/feature-development.yml | 2 +- .github/workflows/pull-request-validation.yml | 2 +- .github/workflows/release-to-production.yml | 2 +- .vscode/settings.json | 2 +- .vscode/tasks.json | 2 +- .../event-ingest-abstractions.csproj | 2 +- src/event-ingest-func/event-ingest-func.csproj | 4 ++-- terraform/function_app.tf | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e85c8a7..30aa713 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "C# (.NET)", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/dotnet:8.0", + "image": "mcr.microsoft.com/devcontainers/dotnet:9.0", "customizations": { "vscode": { "extensions": [ diff --git a/.github/workflows/codequality.yml b/.github/workflows/codequality.yml index 4583eb0..8a303e7 100644 --- a/.github/workflows/codequality.yml +++ b/.github/workflows/codequality.yml @@ -45,7 +45,7 @@ jobs: - uses: frasermolyneux/actions/dotnet-func-ci@main with: dotnet-project: "event-ingest-func" - dotnet-version: 8.0.x + dotnet-version: 9.0.x src-folder: "src" majorMinorVersion: "1.1" diff --git a/.github/workflows/feature-development.yml b/.github/workflows/feature-development.yml index e83ece7..59dfe16 100644 --- a/.github/workflows/feature-development.yml +++ b/.github/workflows/feature-development.yml @@ -20,7 +20,7 @@ jobs: - uses: frasermolyneux/actions/dotnet-func-ci@main with: dotnet-project: "event-ingest-func" - dotnet-version: 8.0.x + dotnet-version: 9.0.x src-folder: "src" majorMinorVersion: "1.1" diff --git a/.github/workflows/pull-request-validation.yml b/.github/workflows/pull-request-validation.yml index a39311a..4bb1e9f 100644 --- a/.github/workflows/pull-request-validation.yml +++ b/.github/workflows/pull-request-validation.yml @@ -30,7 +30,7 @@ jobs: - uses: frasermolyneux/actions/dotnet-func-ci@main with: dotnet-project: "event-ingest-func" - dotnet-version: 8.0.x + dotnet-version: 9.0.x src-folder: "src" majorMinorVersion: "1.1" diff --git a/.github/workflows/release-to-production.yml b/.github/workflows/release-to-production.yml index c7f184e..7cdc923 100644 --- a/.github/workflows/release-to-production.yml +++ b/.github/workflows/release-to-production.yml @@ -25,7 +25,7 @@ jobs: - uses: frasermolyneux/actions/dotnet-func-ci@main with: dotnet-project: "event-ingest-func" - dotnet-version: 8.0.x + dotnet-version: 9.0.x src-folder: "src" majorMinorVersion: "1.1" diff --git a/.vscode/settings.json b/.vscode/settings.json index 2c3c996..6ee8764 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "azureFunctions.projectSubpath": "src\\event-ingest-func", - "azureFunctions.deploySubpath": "src\\event-ingest-func/bin/Release/net8.0/publish", + "azureFunctions.deploySubpath": "src\\event-ingest-func/bin/Release/net9.0/publish", "azureFunctions.projectLanguage": "C#", "azureFunctions.projectRuntime": "~4", "debug.internalConsoleOptions": "neverOpen", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5f03ab3..78ff244 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -71,7 +71,7 @@ "type": "func", "dependsOn": "build (functions)", "options": { - "cwd": "${workspaceFolder}/src\\event-ingest-func/bin/Debug/net8.0" + "cwd": "${workspaceFolder}/src\\event-ingest-func/bin/Debug/net9.0" }, "command": "host start", "isBackground": true, diff --git a/src/event-ingest-abstractions/event-ingest-abstractions.csproj b/src/event-ingest-abstractions/event-ingest-abstractions.csproj index 35dde1a..486721e 100644 --- a/src/event-ingest-abstractions/event-ingest-abstractions.csproj +++ b/src/event-ingest-abstractions/event-ingest-abstractions.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 XtremeIdiots.Portal.EventIngestApi.Abstractions enable enable diff --git a/src/event-ingest-func/event-ingest-func.csproj b/src/event-ingest-func/event-ingest-func.csproj index 5b77362..459f857 100644 --- a/src/event-ingest-func/event-ingest-func.csproj +++ b/src/event-ingest-func/event-ingest-func.csproj @@ -1,6 +1,6 @@ - net8.0 + net9.0 v4 Exe enable @@ -15,7 +15,7 @@ - + diff --git a/terraform/function_app.tf b/terraform/function_app.tf index af6c098..8f06de6 100644 --- a/terraform/function_app.tf +++ b/terraform/function_app.tf @@ -21,7 +21,7 @@ resource "azurerm_linux_function_app" "app" { site_config { application_stack { use_dotnet_isolated_runtime = true - dotnet_version = "8.0" + dotnet_version = "9.0" } cors {