jediwhale / fitsharp

Functional testing tools for .NET
http://fitsharp.github.io
Other
152 stars 73 forks source link

Not working with .Net 6 because of Microsoft.Data.SqlClient #179

Closed KieranMelia closed 1 year ago

KieranMelia commented 2 years ago

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: https://github.com/jediwhale/fitsharp/issues/169

KieranMelia commented 2 years ago

The work around was similar to Naun's answer on #169:

These dll's need to be copied to bin:

  1. packages\microsoft.data.sqlclient.sni.runtime\2.0.1\runtimes\win-x64\native\Microsoft.Data.SqlClient.SNI.dll
  2. 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