.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.有錯誤提示未解決編譯失敗

相關文章
相關標籤/搜索