Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version of dependency not determined correctly #59

Open
nnobelis opened this issue Sep 12, 2024 · 0 comments
Open

Version of dependency not determined correctly #59

nnobelis opened this issue Sep 12, 2024 · 0 comments

Comments

@nnobelis
Copy link

I have the following context with a transient NuGet dependency in a C# project.

Common/Common.csproj: Using Microsoft.Azure.Cosmos 3.42.0
TargetProject/TargetProject.csproj: Using Common and using AspNetCore.HealthChecks.CosmosDb 8.0.1 which has a dependency on Microsoft.Azure.Cosmos 3.37.0 or higher.

Sample project: https://github.com/nnobelis/NugetInspectorResolutionExample

Because TargetProject is using Common, the used cosmos version in project 2 is 3.42.0. I can see that in the bin folder as well (deps.json refers to 3.42.0 and the dll version is 3.42.0).
Despite effectively using Microsoft.Azure.Cosmos 3.42.0, Nuget Inspector still find Cosmos 3.37.0 as a dependency of TargetProject (see https://github.com/nnobelis/NugetInspectorResolutionExample/blob/main/nuget-inspector.json).

I expect the dependency to be [email protected] as specified in Common.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant