efcore icon indicating copy to clipboard operation
efcore copied to clipboard

What is a proper way to use "dotnet ef" command? Failed to initialize CoreCLR, HRESULT: 0x80004005

Open sergekolchin opened this issue 10 years ago • 6 comments

After running "dotnet ef" in project directory i get "Failed to initialize CoreCLR, HRESULT: 0x80004005". project.json

{
  "dependencies": {
    "Microsoft.AspNetCore.Hosting": "1.0.0-*",
    "Microsoft.EntityFrameworkCore": "1.0.0-*",
    "Microsoft.EntityFrameworkCore.Commands": "1.0.0-*",
    "Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-*",
  },
  "frameworks": {
    "net451": { }
  },
  "tools": {
    "dotnet-ef": "1.0.0-*"
  }
}

dotnet --version

.NET Command Line Tools (1.0.0-beta-001540)
Product Information:
 Version:     1.0.0-beta-001540
 Commit Sha:  6aeed1f52d
Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 Runtime Id:  win10-x64

dotnet restore - success dotnet build - success dotnet ef - Failed to initialize CoreCLR, HRESULT: 0x80004005

sergekolchin avatar Feb 26 '16 08:02 sergekolchin

I don't have this working myself but the dotnet-ef nuget package only targets DNXCore. If you add dotnet5.4 into your frameworks section does that help?

barriestewart avatar Feb 26 '16 15:02 barriestewart

I added a

"dotnet5.4": {
      "imports": "portable-net452+win81"
    }

to the frameworks section, but nothing has changed:

dotnet ef Failed to initialize CoreCLR, HRESULT: 0x80004005

sergekolchin avatar Feb 26 '16 18:02 sergekolchin

waiting for a stable version rc2 and cli

sergekolchin avatar Feb 28 '16 06:02 sergekolchin

same issues.

Cuiqs76 avatar Mar 11 '16 08:03 Cuiqs76

.NET Command Line Tools (1.0.0-beta-001598)

Product Information: Version: 1.0.0-beta-001598 Commit Sha: 7582649f88

Runtime Environment: OS Name: Windows OS Version: 10.0.10586 OS Platform: Windows Runtime Id: win10-x86

Cuiqs76 avatar Mar 11 '16 13:03 Cuiqs76

You may want to try filing on the dotnet/cli repository.

bricelam avatar Mar 11 '16 17:03 bricelam