Skip to content

Commit

Permalink
Update to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
frasermolyneux committed Nov 15, 2024
1 parent d3abec1 commit 6b5612c
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codequality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feature-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>XtremeIdiots.Portal.EventIngestApi.Abstractions</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down
4 changes: 2 additions & 2 deletions src/event-ingest-func/event-ingest-func.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
<OutputType>Exe</OutputType>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -15,7 +15,7 @@
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.ServiceBus" Version="5.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.0" OutputItemType="Analyzer" />
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.4.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="9.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion terraform/function_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6b5612c

Please sign in to comment.