如何在单声道项目中使用应用程序设置?

发布于 2024-07-10 14:31:47 字数 178 浏览 8 评论 0原文

我正在尝试将应用程序移植到 Mono,但是 Mono 不支持“应用程序设置”。 我现在不会也不会使用Mono Develop,开发是用Visual Studio 完成的。

有什么快速的方法可以解决这个问题吗? 或者我应该实现我自己的设置替换类?

如果重要的话,这是一个 VB.NET 应用程序。

I'm trying to port an application to Mono, however Mono doesn't support "Application Settings". I don't and won't use Mono Develop, the development is done with Visual Studio.

Is there any quick way to solve this? Or should I implement my own settings replacement class?

If it matters this is a VB.NET application.

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

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

发布评论

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

评论(4

久夏青 2024-07-17 14:31:47

您能详细说明一下“应用程序设置”吗? 您是否尝试使用 app.config 文件? 或者也许是项目文件的设置选项卡?

Mono 应该支持这两者。

也许你还可以详细说明“不支持”。 您收到错误消息吗? 如果是这样,消息是什么?

Can you elaborate on "Application Settings"? Are you trying to use an app.config file? Or maybe the settings tab of the project file?

Mono should support both of those.

Perhaps you could also elaborate on "doesn't support". Are you getting an error message? If so, what is the message?

雪化雨蝶 2024-07-17 14:31:47

提出此类问题的最佳地点是 http://lists 上的 Mono 开发邮件列表。 ximian.com/mailman/listinfo/mono-list

我确信有一个解决方法,并且没有理由手动实现它

而且可能,您问题的主要原因是 VB.BET 因为它是Mono 上的实现与 C# 相比非常落后

The best place to ask questions like this is Mono dev mail list at http://lists.ximian.com/mailman/listinfo/mono-list

I'm sure that there is a workaround and there is no reason to implement it by-hand

And probably, the main reason of your issue is VB.BET because it's implementation on Mono is very backward in comparison with C#

打小就很酷 2024-07-17 14:31:47

Mono 本身不支持此功能。 通过为 monodevelop(适用于 Linux 的 VS 风格 IDE,以及 C# 和其他语言的 mono 开发)实现此功能,你们为代码库做出了巨大的贡献。

Mono does not support this feature natively. You many contribute to the code base immensely by implementing this feature for perhaps monodevelop, the VS style IDE for Linux and mono development in C# and other languages.

贩梦商人 2024-07-17 14:31:47

@jpobst

从我的应用程序中看到以下代码:

Dim Threshold As Integer = My.Settings.Threshold

并且

My.Settings.Threshold = 15

这些应该与应用程序/用户设置同步。 是的,我正在使用 Visual Studio 的设置功能和具有“用户”和“应用程序”范围的 app.config。

单声道不支持。 它没有实现,AFAIK 总是不返回任何内容。 现代艺术博物馆说它是Monotodo

@jpobst

see the following code from my application:

Dim Threshold As Integer = My.Settings.Threshold

And

My.Settings.Threshold = 15

These should be synced with Application / User Settings. Yes I'm using Visual Studio's Settings feature and app.config with "user" and "application" scope.

Mono doesn't support it. It's not implemented and AFAIK always return nothing. MoMA says it's Monotodo.

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