dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.56k stars 1.94k forks source link

I cant make use of the Entity.FrameworkCore #4708

Closed Norrlan closed 1 month ago

Norrlan commented 1 month ago

Type of issue

Typo

Description

[Enter feedback here] Install-Package : NU1202: Package Microsoft.EntityFrameworkCore 8.0.4 is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Package Microsoft.EntityFrameworkCore 8.0.4 supports: net8.0 (.NETCoreApp,Version=v8.0) At line:1 char:1

Install-Package : Package restore failed. Rolling back package changes for 'IAP-CW'. At line:1 char:1

Page URL

https://learn.microsoft.com/en-gb/ef/core/

Content source URL

https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/index.md

Document Version Independent Id

f4681bc6-57be-6e69-cad9-776ce64d93bd

Article author

@ajcvickers

roji commented 1 month ago

As the error message says, you seem to be trying to use EF Core 8.0 from a project targeting .NET 7.0 - this is not supported. Update your .NET project to target .NET 8.0.