We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This issue is moved from fsharp/fsharp#668 .
Some FSharpType and FSharpValue methods are defined by F# Type Extensions. However, C# can not access F# Type Extensions. And Some methods are not defined in .NET Core( https://github.com/fsharp/fsharp/blob/4.1.0.0/src/fsharp/FSharp.Core/reflect.fsi#L266 ).
dotnet new classlib -lang C# and add <PackageReference Include="FSharp.Core" Version="4.1.0" />.
dotnet new classlib -lang C#
<PackageReference Include="FSharp.Core" Version="4.1.0" />
Call Microsoft.FSharp.Reflection.FSharpType.IsRecord
Microsoft.FSharp.Reflection.FSharpType.IsRecord
Build succeeded.
error CS0117: 'FSharpType' does not contain a definition for 'IsRecord'
These methods can call via reflection(e.g. https://github.com/pocketberserker/FSharpNETCoreSandbox/blob/443c35362cbdd167e59ffea03c535fbc251b212e/CsNETCore/Sandbox.cs#L11 ).
sample project: https://github.com/pocketberserker/FSharpNETCoreSandbox/tree/2fdd6fa60cb3989458f96e77a0265064593e9ae7
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This issue is moved from fsharp/fsharp#668 .
Some FSharpType and FSharpValue methods are defined by F# Type Extensions.
However, C# can not access F# Type Extensions.
And Some methods are not defined in .NET Core( https://github.com/fsharp/fsharp/blob/4.1.0.0/src/fsharp/FSharp.Core/reflect.fsi#L266 ).
Repro steps
dotnet new classlib -lang C#
and add<PackageReference Include="FSharp.Core" Version="4.1.0" />
.Call
Microsoft.FSharp.Reflection.FSharpType.IsRecord
Expected behavior
Build succeeded.
Actual behavior
Workaround(s)
These methods can call via reflection(e.g. https://github.com/pocketberserker/FSharpNETCoreSandbox/blob/443c35362cbdd167e59ffea03c535fbc251b212e/CsNETCore/Sandbox.cs#L11 ).
Related information
sample project: https://github.com/pocketberserker/FSharpNETCoreSandbox/tree/2fdd6fa60cb3989458f96e77a0265064593e9ae7
The text was updated successfully, but these errors were encountered: