Open adarsh0raj opened 2 months ago
Interesting. Just noting that Microsoft.Azure.WebJobs 3.0.32 indeed references Microsoft.Extensions.Logging, but it should be version 2.1.1. See https://www.nuget.org/packages/Microsoft.Azure.WebJobs/3.0.32#dependencies-body-tab
I'm not sure why that's showing as 3.0.0 in your dependency trace there, and bringing in the conflicting deeper dependency.
It also occurs to me that this is a much older version of WebJobs (and Microsoft.NET.Sdk.Functions) than I would expect.
@adarsh0raj would you be able to share any included extensions and their versions as well? Also, are you able to successfully build the project locally?
@mattchenderson Yes I am able to build the project locally fine. Also the Worker Extensions project generated locally is also building successfully and as expected.
Sharing the modules and their versions which are in csproj file:
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.20.1" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.1.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="1.2.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="1.16.4" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.21.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.ApplicationInsights" Version="1.1.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Timer" Version="4.3.1" />
<PackageReference Include="Azure.Identity" Version="1.12.0" />
<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
<PackageReference Include="Microsoft.Azure.ServiceBus" Version="5.2.0" />
<PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.41" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="8.0.7" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.2" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="8.0.0" />
<PackageReference Include="Microsoft.NETCore.Platforms" Version="7.0.4" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.0.1" />
</ItemGroup>
any update on this? facing the same issue, unsure why its picking up Microsoft.Extensions.Configuration.Binder 3.0.0 even though it shows Microsoft.Extensions.Configuration.Binder 2.1.1 in the dependencies tab
Description
Hi,
Latest Versions Used -
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:
YAML Steps Used:
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.