I'm currently trying to build a project that requires a repository pattern to be implemented. However, I the main project library is a portable class library so as far as I can tell all my other libraries must be Portable class libraries too. I'm currently trying to add a install EntityFramework from Nuget but I'm getting this error indicated below.
Package EntityFramework 6.1.3 is not compatible with dotnet5.0 (.NETPlatform,Version=v5.0). Package EntityFramework 6.1.3 supports: - net40 (.NETFramework,Version=v4.0) - net45 (.NETFramework,Version=v4.5)
I have tried a number of work arounds like using .NetStandard, referencing ASP.NET core etc but none of these have worked.
Can anyone tell me is there anyway for me to use a regular class library and still have it work in the project? Or is there a way for me to install EntityFramework?
Thanks
Try to downgrade the targeted framework from you project properties to .NET 4.0
or 4.5