Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
| Item | Value |
|---|---|
| Rule ID | AZFW0111 |
| Category | Sdk |
| Severity | Warning |
Cause
After restore, no Microsoft.Azure.Functions.Worker.Core assembly was found in the project's resolved
package graph.
Rule Description
Earlier versions of Azure.Functions.Sdk added Microsoft.Azure.Functions.Worker as an implicit
direct package reference. Because it was a direct reference, NuGet pinned it to the SDK-provided version
and silently downgraded higher versions requested by transitive dependencies (for example, OpenTelemetry
integration packages). The version mismatch was not reported at restore, but caused runtime failures such
as System.MissingMethodException.
The SDK no longer adds this implicit reference. Instead, the worker package must be referenced by the project — directly or through a package that depends on it — so NuGet resolves the highest version the dependency graph requires. This target validates that a worker package is present after restore and warns when it is missing.
How to Fix
Add a reference to Microsoft.Azure.Functions.Worker (or a package that depends on it, such as
Microsoft.Azure.Functions.Worker.Grpc):
<ItemGroup>
+ <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.52.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />
</ItemGroup>
When to Suppress Warnings
Suppress this warning only if the project intentionally does not produce a runnable Azure Functions app
(for example, a shared library that is consumed by a function app). Suppress it by adding AZFW0111 to
NoWarn:
<PropertyGroup>
<NoWarn>$(NoWarn);AZFW0111</NoWarn>
</PropertyGroup>