Skip to content

Warning NU1608: Detected package version outside of dependency constraint: Terminal.Gui 2.0.0-v2-develop.2203 requires System.Text.Json (>= 8. 0.4 && < 9.0.0) but version System.Text.Json 9.0.0 was resolved #3895

Answered by tznind
dfch asked this question in Q&A
Discussion options

You must be logged in to vote

Is your project dotnet 8 or dotnet 9? I would suggest targetting dotnet 8 if possible as it is LTS (long term support) and dotnet 9 is short term support only.

Have you tried adding the below to packages as 8.0.0 (i.e. dotnet 8)? Or 8.0.1?

  • Microsoft.Extensions.DependencyInjection
  • Microsoft.Extensions.Hosting

Is there a reason why Terminal.Gui has a constraint System.Text.Json < 9.0.0?

Probably this is an oversight.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dfch
Comment options

@tznind
Comment options

tznind Jan 13, 2025
Collaborator

@tznind
Comment options

tznind Jan 13, 2025
Collaborator

Answer selected by dfch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants