错误原因:
Message: Error:
An assembly specified in the application dependencies manifest (*.deps.json) was not found:
package: ‘Microsoft.Data.SqlClient.SNI.runtime’, version: ‘2.0.1’
path: ‘runtimes/win-x64/native/Microsoft.Data.SqlClient.SNI.pdb’
解决方案:
在项目文件的 < PropertyGroup >节点添加如下
<IncludeSymbolsInSingleFile>true</IncludeSymbolsInSingleFile>