efcore.pg icon indicating copy to clipboard operation
efcore.pg copied to clipboard

Unable to resolve 'Npgsql.EntityFrameworkCore.PostgreSQL (>= 1.0.0)' for '.NETCoreApp,Version=v1.0'.

Open jeffwudev opened this issue 10 years ago • 4 comments

when i run the command ”dotnet restore", i got the error message:

Errors in c:\Users\xxx\Desktop\dotnet_test\project.json
    Unable to resolve 'Npgsql.EntityFrameworkCore.PostgreSQL (>= 1.0.0)' for '.NETCoreApp,Version=v1.0'.

dependencies in project.json:

  "dependencies": {
    "Microsoft.EntityFrameworkCore": "1.0.0-rc2-*",
    "Microsoft.EntityFrameworkCore.Relational": "1.0.0-rc2-*",
    "Microsoft.EntityFrameworkCore.Relational.Specification.Tests": "1.0.0-rc2-*",
    "Npgsql.EntityFrameworkCore.PostgreSQL": "1.0.0-*",
    "Npgsql": "3.1.0-*",
    "Microsoft.AspNetCore.Diagnostics": "1.0.0-*",
    "Microsoft.AspNetCore.Mvc": "1.0.0-*",
    "Microsoft.AspNetCore.Razor.Tools": {
      "type": "build",
      "version": "1.0.0-*"
    },
    "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
    "Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
    "Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
    "Microsoft.Extensions.Logging.Console": "1.0.0-*",
    "Microsoft.NETCore.App": {
      "type": "platform",
      "version": "1.0.0-*"
    }
  },

dotnet info

C:\Users\xxxx>dotnet --info
.NET Command Line Tools (1.0.0-rc2-002543)

Product Information:
 Version:     1.0.0-rc2-002543
 Commit Sha:  38d0c28a1e

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64

jeffwudev avatar May 01 '16 15:05 jeffwudev

Can you confirm you added the npgsql unstable feed to your NuGet.Config?

roji avatar May 01 '16 17:05 roji

yes, you are right. i forgot about it. thank you very much:)

jeffwudev avatar May 02 '16 00:05 jeffwudev

What do you mean by " npgsql unstable feed to your NuGet.Config? "

sudhirdehade avatar Feb 23 '18 12:02 sudhirdehade

@sudhirdehade this is a very old issue and adding the unstable feed shouldn't be necessary (for more details about it see here). If you're encountering a problem please open a new issue, or if it's more of a usage problem please post a question on stackoverflow, tagged npgsql.

roji avatar Feb 23 '18 18:02 roji