Temporarily relax the minimum extension versions to match bundle 2.6.1
MODIFY
src/WebJobs.Script/extensionrequirements.json
src/WebJobs.Script/extensionrequirements.json
"bundles": [
{
"id": "Microsoft.Azure.Functions.ExtensionBundle",
- "minimumVersion": "2.7.0"
+ "minimumVersion": "2.6.1"
}
],
"types": [
"name": "ServiceBusWebJobsStartup",
"assemblyName": "Microsoft.Azure.WebJobs.ServiceBus",
"packageName": "Microsoft.Azure.WebJobs.Extensions.ServiceBus",
- "minimumAssemblyVersion": "4.3.0.0",
- "minimumPackageVersion": "4.3.0"
+ "minimumAssemblyVersion": "4.2.1.0",
+ "minimumPackageVersion": "4.2.1"
},
{
"name": "EventHubsWebJobsStartup",
"name": "CosmosDBWebJobsStartup",
"assemblyName": "Microsoft.Azure.WebJobs.Extensions.CosmosDB",
"packageName": "Microsoft.Azure.WebJobs.Extensions.CosmosDB",
- "minimumAssemblyVersion": "3.0.10.0",
- "minimumPackageVersion": "3.0.10"
+ "minimumAssemblyVersion": "3.0.9.0",
+ "minimumPackageVersion": "3.0.9"
},
{
"name": "DurableTaskWebJobsStartup",
"assemblyName": "Microsoft.Azure.WebJobs.Extensions.DurableTask",
"packageName": "Microsoft.Azure.WebJobs.Extensions.DurableTask",
"minimumAssemblyVersion": "2.0.0.0",
- "minimumAssemblyFileVersion": "2.5.0",
- "minimumPackageVersion": "2.5.0"
+ "minimumAssemblyFileVersion": "2.4.1",
+ "minimumPackageVersion": "2.4.1"
},
{
"name": "EventGridWebJobsStartup",
"name": "KafkaWebJobsStartup",
"assemblyName": "Microsoft.Azure.WebJobs.Extensions.Kafka",
"packageName": "Microsoft.Azure.WebJobs.Extensions.Kafka",
- "minimumAssemblyVersion": "3.3.2.0",
- "minimumPackageVersion": "3.3.2"
+ "minimumAssemblyVersion": "3.2.1.0",
+ "minimumPackageVersion": "3.2.1"
}
]
}
\ No newline at end of file

MODIFY
test/WebJobs.Script.Tests/ScriptStartupTypeDiscovererTests.cs
test/WebJobs.Script.Tests/ScriptStartupTypeDiscovererTests.cs
@@ -490,7 +490,7 @@ public async Task GetExtensionsStartupTypes_RejectsBundleBelowMinimumVersion()
var traces = testLoggerProvider.GetAllLogMessages();
// Assert
- Assert.True(traces.Any(m => string.Equals(m.FormattedMessage, $"Referenced bundle Microsoft.Azure.Functions.ExtensionBundle of version 2.1.0 does not meet the required minimum version of 2.7.0. Update your extension bundle reference in host.json to reference 2.7.0 or later.")));
+ Assert.True(traces.Any(m => string.Equals(m.FormattedMessage, $"Referenced bundle Microsoft.Azure.Functions.ExtensionBundle of version 2.1.0 does not meet the required minimum version of 2.6.1. Update your extension bundle reference in host.json to reference 2.6.1 or later.")));
}
}
@@ -536,16 +536,6 @@ void CopyToBin(string path)
Assert.NotNull(storageTrace);
Assert.Equal("ExtensionStartupType AzureStorageWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.Extensions.Storage, Version=3.0.10.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not meet the required minimum version of 4.0.4.0. Update your NuGet package reference for Microsoft.Azure.WebJobs.Extensions.Storage to 4.0.4 or later.",
storageTrace.FormattedMessage);
-
- var serviceBusTrace = traces.FirstOrDefault(m => m.FormattedMessage.StartsWith("ExtensionStartupType ServiceBusWebJobsStartup"));
- Assert.NotNull(serviceBusTrace);
- Assert.Equal("ExtensionStartupType ServiceBusWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.ServiceBus, Version=4.2.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not meet the required minimum version of 4.3.0.0. Update your NuGet package reference for Microsoft.Azure.WebJobs.Extensions.ServiceBus to 4.3.0 or later.",
- serviceBusTrace.FormattedMessage);
-
- var durableTrace = traces.FirstOrDefault(m => m.FormattedMessage.StartsWith("ExtensionStartupType DurableTaskWebJobsStartup"));
- Assert.NotNull(durableTrace);
- Assert.Equal("ExtensionStartupType DurableTaskWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.Extensions.DurableTask, Version=2.0.0.0, Culture=neutral, PublicKeyToken=014045d636e89289' does not meet the required minimum version of 2.5.0. Update your NuGet package reference for Microsoft.Azure.WebJobs.Extensions.DurableTask to 2.5.0 or later.",
- durableTrace.FormattedMessage);
}
}

Temporarily relax the minimum extension versions to match bundle 2.6.1