Skip to content

.Net 5 package resolution problems with some packages #3921

Description

@matthid

@forki I noticed a problem on GitLab which basically boils down to paket (crashing with stackoverflow) having trouble to resolve:

group Build
   source https://api.nuget.org/v3/index.json
   nuget Fake.DotNet.Cli
   nuget Fake.IO.FileSystem
   nuget Fake.Core.Target

Paket 5.251.0 runs into the following 'conflict':

 Conflict detected:
  - System.Security.Cryptography.Cng 5.0.0-preview.8.20407.11 requested package Microsoft.NETCore.Platforms: >= 5.0.0-preview.8.20407.11 (preview)
  - System.Text.Encoding.CodePages 4.7.1 requested package Microsoft.NETCore.Platforms: >= 3.1.1
  - System.Security.AccessControl 4.7.0 requested package Microsoft.NETCore.Platforms: >= 3.1
  - System.Security.Principal.Windows 4.7.0 requested package Microsoft.NETCore.Platforms: >= 3.1
  - System.Runtime 4.3.1 requested package Microsoft.NETCore.Platforms: >= 1.1.1

I assume there are still some problems with corner case packages on .net 5. Any chance we can get this fixed? While locally and on other CI systems paket finds a solution, it still dances around downgrading lots of packages until it finally finds a solution and downgrades some packages which IMHO shouldn't need to be downgraded (like NuGet.Common and some others).

At the very least I need to know what I should say to users when this hits someone?

Anyway, I released 5.20.4-alpha.1642, so maybe someone here can test if that actually works better?

From fsprojects/FAKE#2544

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions