Friday, 9 December 2016

Entity Framework 7 - Dependencies issue

Couple of weeks ago I was having issues with some of the Entity Framework packages. The packages with the red squiggle were failing to load



These are the steps I followed to fix the dependencies issues:

  • Installed the latest version of Remotion.Linq 2.1.1
  • Installed "System.Interactive.Async 3.1 1

Ix-Async has been deprecated. Go to this link

 After I applied these changes the restoring of the packages was still failing:

Package Ix-Async 1.2.5 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package Ix-Async 1.2.5 supports:
      - net40 (.NETFramework,Version=v4.0)
      - net45 (.NETFramework,Version=v4.5)
      - portable-net45+win8+wp8 (.NETPortable,Version=v0.0,Profile=Profile78)
    One or more packages are incompatible with .NETCoreApp,Version=v1.0

  • I changed the 'import' section of the 'frameworks' json
    from
    "imports": "dnxcore50"

     to
    :"imports": [
    "dnxcore50",
    "dnx4.5.1"
     ]

After adding dnx4.5.1 to the imports section the package restore process was completed successfully

No comments:

Post a Comment