Skip to content

FCS package dependency System.Collections.Immutable versions conflict #3599

@auduchinok

Description

@auduchinok

FCS NuGet package depends on System.Collections.Immutable 1.2.0 and System.Reflection.Metadata 1.4.2 while the second depends on System.Collections.Immutable 1.3.1 making dotnet build fail with warnings and errors like:

/Users/eugene/Developer/resharper-fsharp/ReSharper.FSharp/src/FSharp.Services/FSharp.Services.fsproj:
warning NU1605: Detected package downgrade: System.Collections.Immutable from 1.3.1 to 1.2.0. Reference the package directly from the project to select a different version.
/Users/eugene/Developer/resharper-fsharp/ReSharper.FSharp/src/Psi.FSharp.LanguageService/Psi.FSharp.LanguageService.csproj:
error NU1605:  JetBrains.ReSharper.Plugins.FSharp.Psi.LanguageService (>= 1.0.0) -> JetBrains.ReSharper.Plugins.FSharp.Psi (>= 1.0.0) -> JetBrains.ReSharper.Plugins.FSharp.Common (>= 1.0.0) -> JetBrains.FSharp.Compiler.Service (>= 14.0.3) -> System.Reflection.Metadata (>= 1.4.2) -> System.Collections.Immutable (>= 1.3.1)

Why do F# compiler projects need exactly 1.2.0 while it leads to versions conflict?
Is it safe to change the version to 1.3.1 across the whole repo? Should it be just FCS nuspec?

macOS 10.12.6
NET Core 2.0 SDK 2.0.0
Mono 5.2.0.215

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