Skip to content

Worker Extensions Internal Project Build Failure With Dependency Downgrade issue NU1605, while building Azure Functions DotNet 8 Isolated Model #2644

Open

Description

Description

Hi,

Latest Versions Used -

 <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.22.1" />
 <PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.17.4" />

Issue Description - While building the project through Azure Devops YAML pipeline, the build is failing on restoring internal WorkerExtensions project with NU1605 error. Since we don't have control over modules required for WorkerExtensions project, our Azure Functions .NET8 Project is resulting in Build Failure.

Error Logs:

##[error]src\<Repo Name>\obj\Debug\net8.0\WorkerExtensions\WorkerExtensions.csproj(0,0): Error NU1605: Warning As Error: Detected package downgrade: Microsoft.Extensions.Configuration from 3.0.0 to 2.1.1. Reference the package directly from the project to select a different version. 
 Microsoft.Azure.Functions.Worker.Extensions -> Microsoft.NET.Sdk.Functions 4.3.0 -> Microsoft.Azure.WebJobs 3.0.32 -> Microsoft.Extensions.Logging 3.0.0 -> Microsoft.Extensions.Configuration.Binder 3.0.0 -> Microsoft.Extensions.Configuration (>= 3.0.0) 
 Microsoft.Azure.Functions.Worker.Extensions -> Microsoft.NET.Sdk.Functions 4.3.0 -> Microsoft.Azure.WebJobs 3.0.32 -> Microsoft.Extensions.Configuration (>= 2.1.1)
 
C:\__w\1\s\src\<Repo Name>\obj\Debug\net8.0\WorkerExtensions\WorkerExtensions.csproj : error NU1605: Warning As Error: Detected package downgrade: Microsoft.Extensions.Configuration from 3.0.0 to 2.1.1. Reference the package directly from the project to select a different version. 
C:\__w\1\s\src\<Repo Name>\obj\Debug\net8.0\WorkerExtensions\WorkerExtensions.csproj : error NU1605:  Microsoft.Azure.Functions.Worker.Extensions -> Microsoft.NET.Sdk.Functions 4.3.0 -> Microsoft.Azure.WebJobs 3.0.32 -> Microsoft.Extensions.Logging 3.0.0 -> Microsoft.Extensions.Configuration.Binder 3.0.0 -> Microsoft.Extensions.Configuration (>= 3.0.0) 
C:\__w\1\s\src\<Repo Name>\obj\Debug\net8.0\WorkerExtensions\WorkerExtensions.csproj : error NU1605:  Microsoft.Azure.Functions.Worker.Extensions -> Microsoft.NET.Sdk.Functions 4.3.0 -> Microsoft.Azure.WebJobs 3.0.32 -> Microsoft.Extensions.Configuration (>= 2.1.1)
  Failed to restore C:\__w\1\s\src\<Repo Name>\obj\Debug\net8.0\WorkerExtensions\WorkerExtensions.csproj (in 10.72 sec).

Build FAILED.

YAML Steps Used:
{6F938794-1ED8-4EBE-A7BE-DC5D81227D4B}

Steps to reproduce

Steps To Repro:

Create an Azure Devops YAML Pipeline with above steps and try to run a Azure Functions Isolated .NEt 8 project. Getting these errors in Pipeline Logs, which is an internal dependency bad resolution resulting in NU1605 error and build failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions