Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Package ‘EntityFramework 6.2.0’ was restored using ‘.NETFramework,Version=v4.6.1’ instead of the project target framework ”

Tags: solution

Check the .net versions of all your projects in the Solution explorer. In my case, it was .net 6.0.1 in 2 projects and .net 6.2.0 in the 3rd project so I changed the version of the third project and it worked.

To do so:

  1. Right click the solution name in solution explorer.
  2. Select ‘Manage Nuget Packages for Solution’.
  3. Select ‘Microsoft.EntityFramewokCore’.
  4. On the Right Side, Check if all projects in the solution have same version, If not, uninstall the package for the project that has different and install the same version as the other projects.
  5. Clean and Rebuild the Solution.


This post first appeared on BUG FIXES AND CODING SOLUTIONS, please read the originial post: here

Share the post

Package ‘EntityFramework 6.2.0’ was restored using ‘.NETFramework,Version=v4.6.1’ instead of the project target framework ”

×

Subscribe to Bug Fixes And Coding Solutions

Get updates delivered right to your inbox!

Thank you for your subscription

×