VisualStudio 2010 设置页面 - 集合设置

发布于 2024-09-03 15:12:46 字数 499 浏览 1 评论 0原文

  • 我有一个 Filemaker 数据库名称列表
  • 每个数据库名称都有一个与其关联的字段/属性对列表
  • 我有一个 C# 4.0 (vs2010) 中的 Windows 窗体应用程序,想要使用上述数据
  • 我想在以下位置维护该列表Visual Studio 设置页面,或使用标准 .NET 设置调用的标准 Visual Studio 设置文件之一
  • 我想避免编写自己的自定义设置、xml、xds(以避免“无法找到该元素的架构信息” /attribute " 错误)
  • 我只有一个稍微复杂的 INI 文件!我不想让我的生活变得复杂!

是否存在任何简单的解决方案?

除非有人有更好的主意,否则我只需编写字符串设置,其名称表明它是 FM DB(例如“fmdbAddresses”),以及连接我的字段/属性对的值(例如“gUserResult=skipField|gAddressID=convertToInt|”)。 gAddressID=uniqueIx")

  • I have a list of Filemaker database names
  • Each DB name has a list of field/attribute pairs associated with it
  • I have a windows form application in C# 4.0 (vs2010) that wants to use the above data
  • I would like to maintain the list either in the Visual Studio settings page, or in one of the standard visual studio settings files using the standard .NET settings calls
  • I would like to avoid writing my own custom settings, xml, xds (to avoid the "Could not find schema information for the element/attribute " errors)
  • I just have a slightly complicated INI file! I don't want to complicate my life!

Do any easy solutions exist?

Unless someone has a brighter idea, I am simply going to write string settings with names that indicate it's a FM DB (e.g. "fmdbAddresses"), and values that concat my field/attribute pairs (e.g. "gUserResult=skipField|gAddressID=convertToInt|gAddressID=uniqueIx")

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

柠檬色的秋千 2024-09-10 15:12:46

注意:我阅读了 Jon Rista 在 CodeProject 上,这导致我出现“无法找到元素/属性的架构信息”错误。无论如何,对于我想要存储的信息,我认为一个 XML 文件、一个需要了解很多有关 VS 配置文件的专门构建的类,以及一个 XDS 文件或包含来引入一个文件,都有点过分了。

我还阅读并尝试了网络上几十页的内容...我对 .NET 方式有了更深入的了解,但我仍然觉得没有什么足够简单或优雅的。

我发现很难相信没有更好的方法,而我却不知何故错过了。

NOTE: I worked through the excellent articles by Jon Rista on CodeProject, which led me to the "Could not find schema information for the element/attribute" errors. In any case, for the info that I wanted to store, I think an XML file, a specially built class needing to know a lot about VS config files, and an XDS file or include to bring one in is more than a bit overblown.

I also read and tried things from a few dozen pages on the web... I gained a deeper understanding of the .NET way, but still nothing which I found simple or elegant enough.

I find it hard to believe there is not a better way that I'm somehow missing.

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