From 9cdd6df886893133db0a10d3a7ae1a269af3b200 Mon Sep 17 00:00:00 2001 From: wangbill Date: Thu, 2 Apr 2026 20:13:06 -0700 Subject: [PATCH] fix: revert shared framework packages to 8.x for net8 Functions host compatibility The Azure Functions host process runs on net8.0 and loads DurableTask extension assemblies into its process. Packages like Microsoft.Extensions.*, Bcl.AsyncInterfaces, and System.Text.Json are part of the .NET shared framework - the host only provides version 8.0.0.0 of these assemblies. PR #510 upgraded these to 10.x, which causes FileNotFoundException at runtime: Could not load file or assembly 'Microsoft.Extensions.Options, Version=10.0.0.0' This reverts the 11 shared-framework packages to 8.x while keeping all other dependency upgrades (Grpc, Protobuf, Azure.Storage.Blobs, Azure.Identity, etc). Packages reverted: - Microsoft.Extensions.* (9 packages): 10.0.2 -> 8.x - Microsoft.Bcl.AsyncInterfaces: 10.0.2 -> 8.0.0 - System.Text.Json: 10.0.2 -> 8.0.5 Test project fix: - Generators.Tests: VersionOverride for DependencyInjection (net10 test project needs 10.x via Functions.Worker transitive dep, safe since tests don't load into the Functions host) global.json: relaxed SDK version to match installed 10.0.104 --- Directory.Packages.props | 26 ++++++++++++------- test/Generators.Tests/Generators.Tests.csproj | 1 + 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index d682b6c70..e6ec7f1b0 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,16 +7,22 @@ true - + - - + + - - - - - + + + + + @@ -82,9 +88,9 @@ - + - + diff --git a/test/Generators.Tests/Generators.Tests.csproj b/test/Generators.Tests/Generators.Tests.csproj index 4505972e5..9101d52d1 100644 --- a/test/Generators.Tests/Generators.Tests.csproj +++ b/test/Generators.Tests/Generators.Tests.csproj @@ -6,6 +6,7 @@ +