There was an error running the selected code generator: Could not load file or assembly Microsoft.EntityFrameworkCore, version = 2.0.1.0

Said Roohullah Allem picture Said Roohullah Allem · Jan 3, 2018 · Viewed 12.8k times · Source

When I was creating a Controller and a View by MVC Controller with views, using Entity Framework I got an error.

The Error is:

There was an error running the selected code generator: 'Could not load file or assembly Microsoft.EntityFrameworkCore, version = 2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' the located assembly's manifest definition does not match the assembly reference The error image

Creating MVC Controller with views, using Entity Framework: Creating MVC Controller with views, using Entity Framework

How can I solve this problem?

I use Visual Studio Version 15.5.2 and version of Microsoft.AspNetCore.All is 2.0.0

Answer

Said Roohullah Allem picture Said Roohullah Allem · Jan 3, 2018

I updated the Microsoft.AspNetCore.All to version 2.0.3 and now it does work right.