Not working with .Net 6 because of Microsoft.Data.SqlClient
KieranMelia opened this issue · comments
KieranMelia commented
There is another similar issue opened for .net core 3.1, and a workaround was found. But for .net 6 the workaround isn't working.
The error shows System.Data.Common 6.0.0 cannot be found.
This is the similar issue: #169
KieranMelia commented
The work around was similar to Naun's answer on #169:
These dll's need to be copied to bin:
- packages\microsoft.data.sqlclient.sni.runtime\2.0.1\runtimes\win-x64\native\Microsoft.Data.SqlClient.SNI.dll
- packages\microsoft.data.sqlclient\2.0.1\runtimes\win\lib\netcoreapp3.1\Microsoft.Data.SqlClient.dll
Microsoft.Data.SqlClient needs to be downgraded to 2.0.1, and the nuget package Microsoft.Data.SqlClient.SNI.Runtime v2.0.1 also needs to be installed