FSHARP.DATA中的WorldBank提供商丢弃了错误:类型' nistry'不定定义字段,构造函数或成员

发布于 2025-02-02 14:53:26 字数 643 浏览 2 评论 0原文

执行此操作:

#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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

眼角的笑意。 2025-02-09 14:53:26

到目前为止解决的问题已经解决:

  • 删除了所有.NET SDK,Runtimes等。
  • 卸载的Visual Studio 2022社区和所有相关产品。
  • 删除了所有剩余文件夹。
  • 从上述应用程序的所有痕迹清理了Windows注册表。
  • 重新安装与2022社区。

我有几个.NET SDK版本:计算机上的2.1、3.1、5和6。删除2和3解决了问题。

Issue Resolved So Far:

  • Removed all .NET SDK, Runtimes, etc.
  • Uninstalled Visual Studio 2022 Community and all related products.
  • Deleted any remaining folders.
  • Cleaned up Windows Registry from all traces of aforementioned applications.
  • Reinstalled VS 2022 Community.

I had several .NET SDK versions: 2.1, 3.1, 5, and 6 on my computer. Deleting the 2 and 3 solved the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文