I am trying to install the latest Microsoft.EntityFrameworkCore
6.0.3 into a class library project targetting netstandard2.1
using Nuget Package Manager and I get this error:
Package Microsoft.EntityFrameworkCore 6.0.3 is not compatible with netstandard2.1 (.NETStandard,Version=v2.1). Package Microsoft.EntityFrameworkCore 6.0.3 supports: net6.0 (.NETCoreApp,Version=v6.0)
Can anyone help me with their guidance to fix this issue?
After upgrading the classlibrary from .NETStandard 2.1 to net6.0 and then adding the nuget packages related to EntityFramework 6.0.3 worked for me.