Skip to content

Referencing a type provider requires IReflectableType (when running compiler with .NET Core) #3701

@dsyme

Description

@dsyme

See #3658 (comment)

Basically, when the F# compiler runs on .NET CoreApp 2.0 it effectively requires that all System.Type have an implementation of IReflectableTYpe. But we have no reasonable way to implement that interface. That requirement seems to be coming from uses of GetTypeInfo in FSharp.Core.dll (though hopefully not anywhere else)

Specifically, if we enable netcoreapp2.0 as a test target here: https://github.com/fsprojects/FSharp.TypeProviders.SDK/pull/132/files#diff-ac663ab43267f2bdb3a22e804b6c9af6R4 then tests fail

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LibraryIssues for FSharp.Core not covered elsewhereArea-TypeProvidersBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions