Skip to content

Comments

Upgrade to .NET 10 and update NuGet packages#28

Merged
paulyuk merged 2 commits intoAzure-Samples:mainfrom
paulyuk:upgrade-dotnet-10
Feb 25, 2026
Merged

Upgrade to .NET 10 and update NuGet packages#28
paulyuk merged 2 commits intoAzure-Samples:mainfrom
paulyuk:upgrade-dotnet-10

Conversation

@paulyuk
Copy link
Contributor

@paulyuk paulyuk commented Feb 21, 2026

Summary

Upgrades the template from .NET 8.0 to .NET 10 and updates NuGet packages to latest compatible versions.

Fixes #27

Changes

infra/main.bicep:

  • Changed runtimeVersion: '8.0'runtimeVersion: '10'

http/http.csproj:

  • Changed <TargetFramework>net8.0</TargetFramework><TargetFramework>net10.0</TargetFramework>
  • Updated Microsoft.Azure.Functions.Worker 2.0.0 → 2.51.0
  • Updated Microsoft.Azure.Functions.Worker.Sdk 2.0.5 → 2.0.7
  • Updated Microsoft.Azure.Functions.Worker.ApplicationInsights 2.0.0 → 2.50.0
  • Kept Microsoft.ApplicationInsights.WorkerService at 2.23.0 (critical - see below)

⚠️ Important: ApplicationInsights 3.0 Breaking Change

Microsoft.ApplicationInsights.WorkerService is intentionally pinned to 2.23.0. Version 3.0.0+ introduces breaking changes with OpenTelemetry migration that are incompatible with Microsoft.Azure.Functions.Worker.ApplicationInsights:

TypeLoadException: Could not load type 'Microsoft.ApplicationInsights.Extensibility.ITelemetryInitializer'
from assembly 'Microsoft.ApplicationInsights, Version=3.0.0.1'

Tracked in: Azure/azure-functions-dotnet-worker#3322

paulyuk and others added 2 commits February 21, 2026 11:32
Fixes Azure-Samples#27

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Azure requires '10.0' not '10' for dotnet-isolated runtime.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@paulyuk paulyuk merged commit 5351b75 into Azure-Samples:main Feb 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to .NET 10 and update NuGet packages (pin AppInsights to 2.x)

1 participant