You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce allocations in ScriptStartupTypeLocator.GetExtensionsStartupTypesAsync (#11012)
* Reduce allocations in `ScriptStartupTypeLocator.GetExtensionsStartupTypesAsync`
* Fix release notes.
* Adding null check on Bindings property.
* Added test to simulate no "Bindings" in extension json.
* Using different cases for extension JSON entries.
stringrequirementNotMetError=$"ExtensionStartupType {extensionType.Name} from assembly '{extensionType.Assembly.FullName}' does not meet the required minimum version of {minimumVersion}. Update your NuGet package reference for {requirement.PackageName} to {requirement.MinimumPackageVersion} or later.";
283
+
errors??=[];
284
284
errors.Add(requirementNotMetError);
285
285
}
286
286
@@ -327,7 +327,7 @@ void CollectError(Type extensionType, Version minimumVersion, ExtensionStartupTy
327
327
}
328
328
}
329
329
330
-
if(errors.Count>0)
330
+
if(errors!=null&&errors.Count>0)
331
331
{
332
332
varbuilder=newSystem.Text.StringBuilder();
333
333
builder.AppendLine("One or more loaded extensions do not meet the minimum requirements. For more information see https://aka.ms/func-min-extension-versions.");
0 commit comments