Question Install Microsoft.EntityFrameworkCore version 5.0.17 specifically: NU1603

BOW

New member
Joined
Aug 23, 2022
Messages
1
Programming Experience
3-5
For a netstandard2.1-based solution I'd need to install Microsoft.EntityFrameworkCore 5.0.17 specifically, but when I try:
C#:
dotnet add package Microsoft.EntityFrameworkCore --version 5.0.17
I get:
C#:
warn : NU1603: BOW.Licensing.Data depends on Microsoft.EntityFrameworkCore (>= 5.0.17) but Microsoft.EntityFrameworkCore 5.0.17 was not found. An approximate best match of Microsoft.EntityFrameworkCore 6.0.7 was resolved.
error: NU1202: Package Microsoft.EntityFrameworkCore 6.0.7 is not compatible with netstandard2.1 (.NETStandard,Version=v2.1). Package Microsoft.EntityFrameworkCore 6.0.7 supports: net6.0 (.NETCoreApp,Version=v6.0)
I've already tried manually downloading the package and adding it to the local package source, without success. I've also cleared all nuget caches.
How can I enforce version 5.0.17 to be used?
 

Latest posts

Back
Top Bottom