FSHARP.DATA中的WorldBank提供商丢弃了错误:类型' nistry'不定定义字段,构造函数或成员
执行此操作:
#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
对于任何国家 /地区等。我得到:
error FS0039: The type 'Countries' does not define the field, constructor or member 'Austria'.
我有两个系统:在安装的应用程序和工具方面几乎相同(例如,相同的.NET SDK,.NET运行时,vs Community 2022),唯一的区别是一个是Win 10机器,另一台胜利11机器。
同一项目中相同的代码行:一个系统还可以,另一个系统抛出了所有红色威格利线。
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 .NET SDK, .NET Runtime, VS Community 2022) 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
到目前为止解决的问题已经解决:
我有几个.NET SDK版本:计算机上的2.1、3.1、5和6。删除2和3解决了问题。
Issue Resolved So Far:
I had several .NET SDK versions: 2.1, 3.1, 5, and 6 on my computer. Deleting the 2 and 3 solved the problem.