System.Data.SqlClient does not work when loading the external library (.NET Standard DLL) at runtime through reflection except if the library has been published for a specific platform (rid).
Trying to execute a SQL query against a SQL Server instance throws "System.PlatformNotSupportedException: System.Data.SqlClient is not supported on this platform" exception.
Repro steps and Visual studio solution can be found here:
https://github.com/softeering/NETStandardSQLClientRepro
I'm pretty sure this can be explained but I don't get why it doesn't work
System.Data.SqlClient does not work when loading the external library (.NET Standard DLL) at runtime through reflection except if the library has been published for a specific platform (rid).
Trying to execute a SQL query against a SQL Server instance throws "System.PlatformNotSupportedException: System.Data.SqlClient is not supported on this platform" exception.
Repro steps and Visual studio solution can be found here:
https://github.com/softeering/NETStandardSQLClientRepro
I'm pretty sure this can be explained but I don't get why it doesn't work