Skip to content

Missing method exception on .NET 5 preview #8743

@kerams

Description

@kerams

I've encountered a runtime error in a simple console application using FSharp.Data. The error message is the same as in fsprojects/FSharp.Data#605

Repro steps

  • Install the 5.0.100-preview.1.20155.7 SDK.
  • dotnet run a netcoreapp3.1 project that uses the Load method of the HTML type provider (I assume this is all it takes - if not, I can provide a better repro)

Expected behavior

No exception.

Actual behavior

Unhandled exception. System.MissingMethodException: Method not found: 'Microsoft.FSharp.Control.FSharpAsync`1<System.IO.TextReader> FSharp.Data.Runtime.IO.asyncReadTextAtRuntime(System.Boolean, System.String, System.String, System.String, System.String, System.String)'

Known workarounds

Use an older SDK version with global.json:

{
  "sdk": {
    "version": "3.1.100"
  }
}

However, this does not help with progams built from within VS 16.6 Preview 1 as they fail at runtime regardless.

Related information

Provide any related information (optional):

  • Windows 10
  • SDK: 5.0.100-preview.1.20155.7 and 3.1.101
  • VS 16.6 Preview 1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions