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 9b33201 commit e477916
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 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 @@ -43,7 +43,7 @@ jobs:
- uses: frasermolyneux/actions/dotnet-func-ci@main
with:
dotnet-project: "repository-func"
dotnet-version: 8.0.x
dotnet-version: 9.0.x
src-folder: "src"

- name: End SonarScanner
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: "repository-func"
dotnet-version: 8.0.x
dotnet-version: 9.0.x
src-folder: "src"

terraform-plan-and-apply-dev:
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: "repository-func"
dotnet-version: 8.0.x
dotnet-version: 9.0.x
src-folder: "src"

terraform-plan-and-apply-dev:
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: "repository-func"
dotnet-version: 8.0.x
dotnet-version: 9.0.x
src-folder: "src"

terraform-plan-and-apply-dev:
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\\repository-func",
"azureFunctions.deploySubpath": "src\\repository-func/bin/Release/net8.0/publish",
"azureFunctions.deploySubpath": "src\\repository-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\\repository-func/bin/Debug/net8.0"
"cwd": "${workspaceFolder}/src\\repository-func/bin/Debug/net9.0"
},
"command": "host start",
"isBackground": true,
Expand Down
8 changes: 4 additions & 4 deletions src/repository-func/repository-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 @@ -16,14 +16,14 @@
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="2.0.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.3.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="9.0.0" />
<PackageReference Include="MX.GeoLocation.GeoLocationApi.Client" Version="1.1.20241114.5" />
<PackageReference Include="MX.GeoLocation.GeoLocationApi.Client" Version="1.1.20241115.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.2.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.0.0" OutputItemType="Analyzer" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.0.0" />
<PackageReference Include="XtremeIdiots.Portal.RepositoryApiClient" Version="1.1.272.1" />
<PackageReference Include="XtremeIdiots.Portal.ServersApiClient" Version="1.1.221.1" />
<PackageReference Include="XtremeIdiots.Portal.ServersApiClient" Version="1.1.222.1" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
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"
}

application_insights_connection_string = data.azurerm_application_insights.core.connection_string
Expand Down

0 comments on commit e477916

Please sign in to comment.