Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何ConfigurationManager.AppSettings在我的 Windows 窗体应用程序中访问?
ConfigurationManager.AppSettings
错误消息显示:当前上下文中不存在名称“ConfigurationManager”。
添加对 System.Configuration.dll 的引用。
在必须去添加对 System.Configuration 的引用才能使用此功能之前,我有过这种经验。
在解决方案资源管理器中右键单击您的项目,选择添加引用,然后选择 .Net 选项卡(默认情况下应选中),然后选择 System.Configuration