Reputation: 31
I'm trying to install the package(Install-Package Microsoft.EntityFrameworkCore.SqlServer) using Package Manager Console in my WPF.Net Application Visual Studio 2017 and i got this error.
Install-Package : Unable to find package 'Microsoft.EntityFrameworkCore.SqlServer' At line:1 char:1 + Install-Package Microsoft.EntityFrameworkCore.SqlServer + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Please help me. Thank you.
Upvotes: 1
Views: 4977
Reputation: 1
Make sure you have added correct nuget source. You can see it using dotnet nuget list source
For me adding below nuget source solved the issue :
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
Upvotes: 0
Reputation: 163
Closing all open Visual Studio windows and reopening the project worked for me.
Upvotes: 0
Reputation: 196
install entityframework not entityframeworkCore. entityframeworkCore is for .net core and won't work on standart .net application
Upvotes: 0