一个 asp.net core 程序,之前在 .net core 3.0 preview 4 上可以正常运行,昨天升级到 preview 5 后运行时出现下面的错误:
Microsoft.AspNetCore.Server.Kestrel
System.TypeLoadException: Could not load type 'Microsoft.EntityFrameworkCore.Metadata.RelationalAnnotationsBuilder' from assembly 'Microsoft.EntityFrameworkCore.Relational, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at Microsoft.EntityFrameworkCore.SqlServer.Metadata.Internal.SqlServerModelBuilderAnnotations..ctor(InternalModelBuilder internalBuilder, ConfigurationSource configurationSource)请问如何解决?
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/615/viewspace-3170855/ ,如需转载,请注明出处,否则将追究法律责任。