I'm compiling an exe using the the F# --standalone option and one of the libraries it references uses the SqlProgrammabilityProvider in FSharp.Data.SqlClient. At runtime I get a "File Not Found" error from mscorlib.dll trying to load FSharp.Core. It occurs in the constructor of the ISqlCommand Implementation.
Note that to get the exe to compile at all with the --standalone option I had to download the source for FSharp.Data.SqlClient and compile it against F# 4.0. If I set Copy Local to true for FSharp.Core in FSharp.Data.SqlClient, then I get a duplicate type error instead of the file not found error at the same location when running the exe.
Is this a supported scenario? How can I get the provided type to reference the same "fake" FSharp.Core that is embedded in the exe by the --standalone flag?