Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Using FSharp.Core nuget package causes a bad transitive dependency incompatible with .NETCoreApp 1.0 #642

@dsyme

Description

@dsyme

Using the PCL version of the FsCheck 2.6.2 component gives a transitive dependency on FSharp.Core nuget package.

This causes a bad transitive dependency incompatible with .NETCoreApp 1.0

This may be driver error, e.g. perhaps we have to qualify the frameworks w.r.t. the package reference. Ugh.

Repro steps

Take this project.,json:

{
  "version": "1.0.0-*",
  "name": "FSharp.Core.Unittests",
  "dependencies": {
    "FsCheck": "2.6.2"
  },
  "frameworks": {
    "netcoreapp1.0": {
      "dependencies": {
        "Microsoft.NETCore.App": {
          "type": "platform",
          "version": "1.0.1"
        }
      },
    }
  },
}

Run

nuget.exe restore

Expected behavior

restores ok

Actual behavior

 Errors in C:\GitHub\dsyme\visualfsharp\src\fsharp\FSharp.Core.Unittests\project.json
      Package FsCheck 2.6.2 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package FsCheck 2.6.2 supp
  orts:
        - net45 (.NETFramework,Version=v4.5)
        - portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
        - portable-net45+win8+wp8 (.NETPortable,Version=v0.0,Profile=Profile78)
        - portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)
      Project FSharp.Core is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Project FSharp.Core supports
  : netstandard1.6 (.NETStandard,Version=v1.6)
      One or more projects are incompatible with .NETCoreApp,Version=v1.0.
      One or more packages are incompatible with .NETCoreApp,Version=v1.0.
      Package FsCheck 2.6.2 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0) / osx.10.11-x64. Package Fs
  Check 2.6.2 supports:
        - net45 (.NETFramework,Version=v4.5)

Known workarounds

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions