Unable to resolve 'Npgsql.EntityFrameworkCore.PostgreSQL (>= 1.0.0)' for '.NETCoreApp,Version=v1.0'.
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
Can you confirm you added the npgsql unstable feed to your NuGet.Config?
yes, you are right. i forgot about it. thank you very much:)
What do you mean by " npgsql unstable feed to your NuGet.Config? "
@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.