netEFCore Could not load type 'Microsoft.EntityFrameworkCore.Internal.SemanticVersionComparer' 电脑版发表于:2021/4/16 12:04 ## core3.1 ef 5.0.5 Could not load type 'Microsoft.EntityFrameworkCore.Internal.SemanticVersionComparer' ![add-migration 命令时候报错](https://img.tnblog.net/arcimg/17607487550/86f1951f7c73461498784dede559e221.png) 这个问题一般是ef包版本不兼容, 把ef包更换到和core相兼容的版本就可以了 [第三方网址:Could not load type 'Microsoft.EntityFrameworkCore.Internal.SemanticVersionComparer' ](http://fanyi.baidu.com/transpage?query=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F65058500%2Fcould-not-load-type-microsoft-entityframeworkcore-internal-semanticversioncompa&from=auto&to=zh&source=url&render=1)