See https://github.com/Microsoft/visualfsharp/issues/5931 This is really a problem with the TP SDK and/or the F# compiler TP API. See also #297 and https://github.com/fsprojects/FSharp.TypeProviders.SDK/pull/295#issuecomment-481249482