Package 'Microsoft.EntityFrameworkCore.SqlServer' is incompatible with 'all' frameworks in the project Package 'Microsoft.EntityFrameworkCore.SqlServer' is incompatible with 'all' frameworks in the project sql-server sql-server

Package 'Microsoft.EntityFrameworkCore.SqlServer' is incompatible with 'all' frameworks in the project


I was using version 1.1. Try to run the below command including the version number:

Visual Studio Code:

'dotnet add package Microsoft.EntityFrameworkCore.SqlServer -v 1.1.1'

Visual Studio:-

'Install-Package Microsoft.EntityFrameworkCore.SqlServer -v 1.1.1'


This Might Be Happening due to generated NuGet Cache While Installing Packages.Go to Tools>Options>NuGet Package Manager>General and "Clear All NuGet Cache".This Worked in my case(VS Community 2019).

Also try to update Source of nuget.org by going to Tools>Options>NuGet Package Manager>Package Source and click Update Source in case of VS 2017.