An Azure service that provides an event-driven serverless compute platform.
Hi @Chavan, Shweta ,
Thanks for reaching out to Microsoft Q&A.
WorkerExtensions.csproj : error NU1102: Unable to find package Microsoft.Azure.WebJobs.Extensions.Storage.Blobs with version (>= 5.2.0)
This error is usually not caused by your project file directly.
The Azure Functions Worker SDK generates a temporary WorkerExtensions.csproj during build, and that generated project restores extension packages required by your triggers. For Blob triggers, it may internally reference Microsoft.Azure.WebJobs.Extensions.Storage.Blobs even in isolated worker apps.
A few things stand out in your setup:
- .NET Framework 4.8 + Isolated Worker is not supported
The isolated worker model supports .NET (Core/5+/6+/8+) runtimes, not .NET Framework 4.8. If you're creating a new isolated function app, use:
<TargetFramework>net8.0</TargetFramework>
or another supported .NET version.
- Verify NuGet package sources
Microsoft.Azure.WebJobs.Extensions.Storage.Blobs 5.2.0 definitely exists on NuGet.
If the error is NU1102: Unable to find package Microsoft.Azure.WebJobs.Extensions.Storage.Blobs with version (>= 5.2.0), then most commonly:
- nuget.org is disabled
- Package Source Mapping is blocking the package
- corporate/private feeds are being used and nuget.org isn't searched
- proxy/firewall restrictions exist
Check:
dotnet nuget list source
or Visual Studio:
Tools
-> NuGet Package Manager
-> Package Sources
Ensure nuget.org is enabled.
- Check for Package Source Mapping
If your solution has a NuGet.Config, look for <packageSourceMapping>
Most of the times, WorkerExtensions restore fail because the generated project attempts to restore packages that aren't mapped to any source. Similar WorkerExtensions restore failures have been reported when package source restrictions prevent extension packages from being restored.
You could try:
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk"
Version="2.0.2"
OutputItemType="Analyzer" />
as a test.
- Clean generated WorkerExtensions files
Delete bin/ obj/ ,then run:
dotnet nuget locals all --clear
dotnet restore
After a failed build, open:
obj\Debug\net8.0\WorkerExtensions\WorkerExtensions.csproj
and inspect which package versions are being generated. That file usually reveals exactly why the SDK is requesting:
Microsoft.Azure.WebJobs.Extensions.Storage.Blobs 5.2.0
even though your project references:
Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs 6.2.0
Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know.