.NetCore 3.0迁移遇到的各类问题

错误集合ui

【错误】当前+.NET+SDK+不支持将+.NET+Core+3.0+设置为目标。请将+.NET+Core+2.2+或更低版blog

【解决方法】勾选上就能够了字符串

 

2.it

【错误】io

add-migration init
Build started...
Build succeeded.
System.ArgumentNullException: Value cannot be null. (Parameter 'connectionString')编译

【缘由】程序

个人迁移的dbcontext不在启动程序集中读取链接字符串时读错了方法

 

3.im

【错误】ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic)

【缘由】项目

在程序集属性里改改过名字因此dll与路径不匹配

【解决方法】能够先移除再改过名字再添加项目

 

4.

【错误】build fail

【缘由】个人是忘记设置启动项了

【解决方法】

1.设置启动项

2.有错误提示未解决编译失败

相关文章
相关标签/搜索