I have a VS extension, targetting .NET 4.6.1. I've refactored some of it into a .NET standard 2.0 dll, referenced by the extension. Where the extension depended on System.Data.SqlClient, the .NET standard dll depends on Microsoft.Data.SqlClient, added as a nuget package. The trouble is, at runtime, I get...
Could not load file or assembly 'Microsoft.Data.SqlClient, Version=1.11.20045.2, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5' or one of its dependencies
Following this question, I thought I'd look in the VSIX and sure enough, Microsoft.Data.SqlClient.dll is gloriously missing. I'm not very good with reference issues, but it seems this is totally out of my hands?
I really need this to work, and will happily screen-share or otherwise help anyone who can fix my problem. If you prefer to see the problem in situ, you can clone https://github.com/bbsimonbb/query-first.git then checkout the branch target-core-and-framework.