fsprojects / FSharp.Data

F# Data: Library for Data Access
https://fsprojects.github.io/FSharp.Data
Other
816 stars 288 forks source link

Worldbank Provider: No fields for Countries!!! #1440

Closed siavash-babaei closed 2 years ago

siavash-babaei commented 2 years ago

Execute this:

#r "nuget: FSharp.Data"

open FSharp.Data

type WorldBank = WorldBankDataProvider<"World Development Indicators", Asynchronous=true>

let data = WorldBank.GetDataContext()

let countries = data.Countries

let aus = countries.Austria

For any country, etc. I get:

error FS0039: The type 'Countries' does not define the field, constructor or member 'Austria'.

I have two systems: almost identical in terms of applications and tools installed (e.g., same VS Community 2022, .NET SDK, .NET Runtime) with the only difference being one is WIN 10 machine and the other a WIN 11 machine.

The same lines of code in the same project: One system is OK and the other throws all red-wiggly lines.

siavash-babaei commented 2 years ago

Issue Resolved So Far:

siavash-babaei commented 2 years ago

I couldn't figure out the specific issue hard as I tried. Issue Resolved So Far: