如何从默认选项创建设置文件?
File.Exists(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)
为 false。
如何让它成为现实?
File.Exists(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)
is false.
How to make it true?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
配置文件和设置不是同一件事。配置文件名为
[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.