Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Entity Framework Model on Visual Studio 2022

I am using Visual Studio 2022 with.Net 6.0, I installed Entity Framework 6.4.4 after adding it when I create an Entity Framework model. I am getting a Popup message saying that.

The project's target framework does not contain Entity Framework runtime assemblies. Please review the target framework information on the project's property page.

Can somebody tell us how to solve that problem? enter image description here

like image 754
Nishant Bangera Avatar asked Apr 29 '26 14:04

Nishant Bangera


1 Answers

You can install .Net Framework 4.8.

.Net Core 1 - 3.2 & .Net 5 & 6 has no Entity Framework Data Model available with EF Core.

You want to use EF 6 (not Core) and Data Model you have to use .Net Framework 4.8 or lower than that.

like image 82
Nishant Bangera Avatar answered May 02 '26 03:05

Nishant Bangera



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!