Skip to content

Missing method exception, .NET 5 #8881

Closed
@kerams

Description

@kerams

Create a console application targeting netcoreapp5.0, install the 5.0.100-preview.2.20176.6 SDK, and reference https://www.nuget.org/packages/FSharp.Data.Npgsql/0.2.6-beta. Finally make sure to have a live instance of Postgres available.

type P = FSharp.Data.Npgsql.NpgsqlConnection<"host=localhost;port=5432;username=postgres">

[<EntryPoint>]
let main argv =
    let x = P.CreateCommand<"select 1">("localhost:5432")
    let r = x.Execute()
    0

dotnet run this.

Expected behavior

Program executes fine.

Actual behavior

Unhandled exception. System.MissingMethodException: Method not found: 'System.Type System.Type.GetType(System.String, System.Boolean)'.
   at Tests.main(String[] argv)
  • Windows 10
  • .NET 5.0.100-preview.2.20176.6

Apologies if this turns out to be a problem in the type provider.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions