惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
AI
AI
博客园 - 三生石上(FineUI控件)
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
雷峰网
雷峰网
NISL@THU
NISL@THU
S
Schneier on Security
T
Threatpost
T
Tenable Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
IT之家
IT之家
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
C
Cybersecurity and Infrastructure Security Agency CISA
P
Privacy & Cybersecurity Law Blog
I
Intezer
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
T
Threat Research - Cisco Blogs
SecWiki News
SecWiki News
AWS News Blog
AWS News Blog
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
V
V2EX
Recorded Future
Recorded Future
Microsoft Security Blog
Microsoft Security Blog
S
Secure Thoughts
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
Apple Machine Learning Research
Apple Machine Learning Research
Project Zero
Project Zero
PCI Perspectives
PCI Perspectives
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Cloudbric
Cloudbric
Recent Announcements
Recent Announcements
V
Visual Studio Blog
Hacker News: Ask HN
Hacker News: Ask HN
N
News and Events Feed by Topic
C
CERT Recently Published Vulnerability Notes
The Cloudflare Blog
Forbes - Security
Forbes - Security
C
Cisco Blogs
O
OpenAI News
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - 南国之恋

系统技术栈 解决delphi7在win10上安装后无法正常使用的问题 windows服务器C盘空间清理,发现大文件,可用!AutoCleanC_DeepScan 查看分区表大小 系统表空间清理 postman调用deepseek webapi 将Nginx安装为windows服务,下载nssm 单词系列2 2025高考英语高频易错词汇分类速记 vs2019 本地源“C:\Program Files\DevExpress 22.2\Components\System\Components\Packages”不存在 - 南国之恋 mysql数据库定时事件 plsql查询oracle数据表时,将备注显示成列名 生成脚本 达梦数据库学习记录 oracle密码过期问题,用户锁定问题 Delphi 7 编译软件申请管理员权限 mysql odbc delphi连接问题 调用Exe程序并且出现界面 CreateProc(ProcessName:String) frp(fast reverse proxy)是一款高性能的反向代理应用 GitHub上整理的一些工具 Kettle 中文名称叫水壶
c# winform exe.config不能更新
南国之恋 · 2024-09-21 · via 博客园 - 南国之恋

遇到一个非常古怪的现象, 好在被解决了,记录一下过程:

//先是我需要读取下配置文件,用了
System.Configuration.ConfigurationSettings.AppSettings["Config"]
//去读取提示已过时,那就按照提示替换为新的
System.Configuration.ConfigurationManager.AppSettings["Config"]
结果没有类库提示,那就简单了,去引用一下System.Configuration。按道理没问题了,结果读取回来是个空内容。单独去VS生成目录看下程序同名的 .exe.config 文件,发现压根没有我的这个配置项,这就是今天特意要说明的古怪之处,最后解决办法发一下:

去代码目录,删除掉 obj目录 ,然后再生成,好了,问题解决

,生成的一个exe.config居然是2022年的,现在是2024年,

经过一番搜索,删除了obj文件中的一个exe.config后问题解决,所以最好不要用exe.config这个文件作为配置文件,坑太多了!