fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
2.02k stars 525 forks source link

Paket installs an unwanted version of the dependency #4052

Closed avestura closed 1 year ago

avestura commented 3 years ago

Description

I followed Getting Started documentation of OrchardCMS which requires installing OrchardCore.Application.Cms.Target package. Even though none of the dependencies require GraphQL version 4.5 and the package uses GraphQL 2.4, it exists in paket.lock file, therefore causing TypeLoadException. You can see more info about this here: https://github.com/OrchardCMS/OrchardCore/issues/9968

Repro steps

Please provide the steps required to reproduce the problem

  1. Create a new Empty ASP.NET Core project

  2. Run paket install OrchardCore.Application.Cms.Target

  3. Running project gives TypeLoadException because Orchard is on GraphQL v 2.4 but paket installs GraphQL 4.5 as well.

Expected behavior

GraphQL 4.5 should not be in the lock file.

Actual behavior

GraphQL 4.5 is in lock file, causing TypeLoadException.

delgesso commented 3 years ago

Is this still an issue? It looks like OrchardCMS/OrchardCore#9968 has since been closed

avestura commented 3 years ago

@delgesso It is closed because it isn't an Orchard issue. It looks like Paket is picking the wrong version.