MissingMethodException when trying to print a string in F#

Hi,

When I try to do a basic printfn call in F#, I get a MissingMethodException: Method not found: 'Void Microsoft.FSharp.Core.PrintfFormat`5..ctor(System.String)'.

The code to repro is simple:

printfn "%s" "Hi"

Any ideas on how to fix this?

Thanks,

Jon

Environment:

LINQPad 6.5.5 (x64)
Windows 10
VS 2019 16.4.1

❯ dotnet --list-sdks
1.1.8 [C:\Program Files\dotnet\sdk]
2.2.109 [C:\Program Files\dotnet\sdk]
2.2.402 [C:\Program Files\dotnet\sdk]
3.0.101 [C:\Program Files\dotnet\sdk]
3.1.100 [C:\Program Files\dotnet\sdk]

Comments

Sign In or Register to comment.