<分区>
Possible Duplicate:
What is the difference between app.config file and XYZ.settings file?
这里最大的区别是什么?我喜欢使用 Settings.Settings,因为 og 编辑器并没有在 app.config 中获取所有 xml。
<分区>
Possible Duplicate:
What is the difference between app.config file and XYZ.settings file?
这里最大的区别是什么?我喜欢使用 Settings.Settings,因为 og 编辑器并没有在 app.config 中获取所有 xml。
最佳答案
Settings.settings 是 Visual Studio 的设计器文件,用于生成设置类,如 .resx 文件如何保存资源。
设置必须存储在某个地方,但它们不存储在 Settings.settings 中(默认的是)。它们存储在 .config 文件中。
使用生成的类,您可以更新 app.config 而不必担心操作 XML。
关于c# - Settings.settings 与 app.config?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7347765/
相关文章:
c# - HTTPWebRequest 无法创建 SSL/TLS 安全通道
c# - Windows 7 64 位和 Office 64 位上的 LinqToExcel
c# - 为什么 Visual Studio 2019 会删除对新 .razor 文件的监视?
c# - 从 C++ : how to pass nullptr to DateTime? 调用 C#
visual-studio - VS2012 Web Essentials 中的 TypeScript 错误通知
visual-studio - .sqlproj 文件的版本控制
c# - VS 2010 : Prevent display of Build Summary in the output window