Could not load file or assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=1.1.0.0' after upgrading to 1.1.0

前端 未结 2 859
轮回少年
轮回少年 2021-02-14 14:19

I have a Asp.Net Core project targeting .NET 462 and it was working with Asp.Net Core version 1.0.1. After upgrading to \"1.1.0\" I got this error:

FileLo

相关标签:
2条回答
  • 2021-02-14 14:48

    updated Pomelo.EntityFrameworkCore.MySql in .csproj file to the latest version 3.1.1 to fix issue.

    0 讨论(0)
  • 2021-02-14 14:58

    Complete project references clean-up solved my problem.

    1. Delete all bin/obj folders
    2. Delete all project.lock.json files
    3. Delete local Nuget repository cache (computer one)
    4. Remove all references from project.json file and add only required ones (with the help of R#)
    5. nuget udpate, dotnet restore = project is running

    When I'm thinking about it again, maybe only point 4 was important?

    0 讨论(0)
提交回复
热议问题