Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dependency error when I build Entity Framework Core project

I just have added a new project .NET Console Core.

1- Create a new Console Application(.NET Core)
2- Install-Package Microsoft.EntityFrameworkCore.SqlServer –Pre
3- Install-Package Microsoft.EntityFrameworkCore.Tools –Pre

When I build I get the following build Error:
The dependency Ix-Async 1.2.5 does not support framework .NETCoreApp

my project.json

{
  "version": "1.0.0-*",
  "buildOptions": {
    "emitEntryPoint": true
  },

  "dependencies": {
    "Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-rc2-final",
    "Microsoft.NETCore.App": {
      "type": "platform",
      "version": "1.0.0-rc2-3002702"
    }
  },

  "frameworks": {
    "netcoreapp1.0": {
      "imports": "dnxcore50"
    }
  }
}

Any Idea?

like image 207
Bassam Alugili Avatar asked Mar 28 '26 17:03

Bassam Alugili


1 Answers

This is a known issue answered here.

Just add portable-net452+win81 in the imports section of frameworks in the packages.json like so.

 "frameworks": {
    "netstandard1.5": {
      "imports": [
        "dnxcore50",
        "portable-net452+win81"
      ]
    }

}

It worked for me.

like image 86
John Donnelly Avatar answered Mar 30 '26 12:03

John Donnelly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!