Closed travis-leith closed 8 months ago
I think with type providers you should use compiletime the full .NET framework dll and runtime the Core dll.
@Thorium the instructions given in your link almost worked; they were able to remove errors visible in VS, but upon building I get the following error
The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.Details: Could not load file or assembly 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.Could not load file or assembly 'System.Threading.Tasks.Extensions,...
So I added the package System.Memory and copied the dll to the libraries folder, then upon building I get
The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe,...
I have tried adding the packing System.Runtime.CompilerServices.Unsafe and copying the dll but no change in error.
Also, the test project in this repo does not work for me. Trying to build results in
Severity Code Description Project File Line Suppression State
Error FS3033 The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Exception has been thrown by the target of an invocation. SqlProvider.Core.Tests C:\repos\New folder\SQLProvider\tests\SqlProvider.Core.Tests\MySql\Program.fs 30 Active
Hi, I upgraded few system references, to SQLProvider 1.1.79, hope that helped.
This is fixed
Description
I am trying to get a basic demo working against MariaDB10 using MySqlConnector but can't get it to compile. The advice given in this related issue doesn't seem to help.
Repro steps
Create a project with the following code
and the following libraries
Place the MySqlConnector.dll in the 'DLLs' folder and try to build.
Expected behavior
Successful build
Actual behavior
The following compile error is given
Related information