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

Asier 41 Reputation points
2021-10-29T09:11:26.2+00:00

Dear,

I have read in this post that I should use EF 4.8 instead of .net 5.0
https://learn.microsoft.com/en-us/answers/questions/363546/adonet-entity-data-model.html

I have installed that framework from here https://dotnet.microsoft.com/download/dotnet-framework/thank-you/net48-developer-pack-offline-installer

even doing this, when I try to use 4.8 I can't see this version in target framework:
144927-captura.png

this are the frameworks that already have installed:
144981-captura.jpg

I also tried to install EF 6.0 from this url
https://dotnet.microsoft.com/download/dotnet/thank-you/sdk-6.0.100-rc.2-windows-arm64-installer
but I can't find here
144956-captura.png

thanks a lot

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
697 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jack J Jun 24,286 Reputation points Microsoft Vendor
    2021-11-01T08:40:52.037+00:00

    @Asier , If you want to create .net Framework 4.8 app, you could Add a new Project -> WPF App(.NET Framework)->Choose .NET Framework4.8.

    145452-image.png

    If you want to use .net 6.0, I recommend that you use vs2022 Preview to do it.

    Please click Add a new Project -> WPF App->Name the Project->Choose .NET 6.0.

    145453-image.png

    Hope this could help you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments