Which dependencie is used?

@Maximilien_Selva

The lowest version that satisfies all constraints and is available in the configured feeds—in this case, 5.0.2—is used.

Why?

  • NuGet resolves dependencies transitively and greedily but prefers lower versions if they satisfy all version constraints.
  • Since System.Text.Json >= 5.0.2 satisfies both dependencies, and 5.0.2 is available in the Host feed, it is selected.