项目根目录添加一个“应用程序配置文件”,名字为App.configApp.config加节点,给add取一个name;项目添加对System.configuration的引用,就能使用System.configuration里的ConfigurationManager类