Search code examples
asp.net-coreentity-framework-coreclass-library

Version conflict occur in Microsoft.Entity.FrameworkCore


I am working on a .net core web application with razor pages. My application structure is like :

  • DemoCoreApplication with class Libraries "BLL.Data" and "BLL". enter image description here

In BLL.Data, I have made the DB context then I have added the reference of "BLL. Data" project into my main project i.e: DemoCoreApplication.

Refrences in BLL.Data class library:

enter image description here

After building the main project (DemoCoreApplication), I got some strange version conflicting errors.

enter image description here


Solution

  • I believe the following steps will solve your problem

    • Install .Net Core 2.2 SDK (if you don't have)
    • Convert all projects in the solution to use .Net Core 2.2
    • Rebuild, Start the project