Description
samples/Sentry.Samples.OpenTelemetry.AzureFunctions is the one sample still on net10.0 after the .NET 11 bump in #5529. Everything else moved to net11.0.
The Azure Functions Worker SDK has no .NET 11 support yet. Both the pinned 2.0.7 and the current 2.1.0 reject the target framework:
Microsoft.Azure.Functions.Worker.Sdk.targets(105,5): error :
Invalid combination of TargetFramework and AzureFunctionsVersion is set.
The csproj carries a comment saying as much.
What to do
Once the Functions Worker SDK supports .NET 11, set the sample's TargetFramework to net11.0 and drop that comment. Nothing else in the repo depends on it - samples deliberately use literal, conventional TFMs rather than the centralized properties, so this is a one-line change.
Refs
Description
samples/Sentry.Samples.OpenTelemetry.AzureFunctionsis the one sample still onnet10.0after the .NET 11 bump in #5529. Everything else moved tonet11.0.The Azure Functions Worker SDK has no .NET 11 support yet. Both the pinned
2.0.7and the current2.1.0reject the target framework:The csproj carries a comment saying as much.
What to do
Once the Functions Worker SDK supports .NET 11, set the sample's
TargetFrameworktonet11.0and drop that comment. Nothing else in the repo depends on it - samples deliberately use literal, conventional TFMs rather than the centralized properties, so this is a one-line change.Refs