如何从默认选项创建设置文件?

发布于 2024-10-04 10:20:33 字数 118 浏览 0 评论 0原文

File.Exists(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile) 为 false。

如何让它成为现实?

File.Exists(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile) is false.

How to make it true?

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

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

发布评论

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

评论(1

瞳孔里扚悲伤 2024-10-11 10:20:34

配置文件和设置不是同一件事。配置文件名为[Appname].exe.config,应与应用程序位于同一位置。

这些设置单独存储在用户存储中,并且我不知道有任何方法可以通过文件名检查它们是否存在。

The Configuration file and the Settings are not the same thing. The configuration file is the one named [Appname].exe.config that should be in the same location as the application.

The settings are stored in the user store separately, and I'm not aware of any method to check if they exist by a file name anyway.

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