Dim config As Configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
config.AppSettings.Settings("test").Value = "blah"
config.Save(ConfigurationSaveMode.Modified)
ConfigurationManager.RefreshSection("appSettings")
无法正常工作
我想编辑/修改app.config
我使用visual studio.net 2003和.NET1.1
答案 0 :(得分:0)
此问题已在此处提出:Why are my application settings not getting persisted?
在调试/发布模式下,您可能正在查看错误的文件夹。