I am trying to create a web API with ASP.NET Core, as described here Create a web API with ASP.NET Core
At first I scaffolding one table from my Existing MySql Database in EF Core as described here Scaffolding an Existing Database in EF Core. I install dll's:
Microsoft.EntityFrameworkCore.Design(2.2.6)
Microsoft.EntityFrameworkCore.InMemory(3.1.2)
Microsoft.EntityFrameworkCore.Tools(2.2.6)
MySql.Data.EntityFrameworkCore(8.0.19)
During installation, additionally installed
Microsoft.EntityFrameworkCore.SqlServer(3.1.0-preview1.19506.2)
Microsoft.Extensions.Logging.Debug(3.1.0-preview1.19506.1)
Microsoft.VisualStudio.Web.CodeGeneration.Design(3.1.0-preview1.19509-03)
And after running the command "Add API Controller with actions, using Entity Framework", I get a error message
‘Could not load file or assembly ‘Microsoft.EntityFrameworkCore.Design, Version=3.0.0.0, Culture=neutral,PublicKeyToken=adb9793829ddae60’. The located assembly’s manifest definition does not match the assembly reference,(0x80131040)’
How to fix the problem?
P.S. Packages with microsoft.entityframeworkcore.sqlserver, which is not required, depends on microsoft.entityframeworkcore 3.0.0.0 . After I delete it from .csproj , but it appears again in .csproj after trying to create API controller with actions using Entity Framework as described in here . How to get rid of this?
User contributions licensed under CC BY-SA 3.0