无法访问 Windows 窗体应用程序中的 ConfigurationManager.AppSettings [英] Unable to access ConfigurationManager.AppSettings in a Windows Forms Application

查看:46
本文介绍了无法访问 Windows 窗体应用程序中的 ConfigurationManager.AppSettings的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的 Windows 窗体应用程序中访问 ConfigurationManager.AppSettings?

How can I access ConfigurationManager.AppSettings in my Windows Forms Application?

错误消息如下:当前上下文中不存在名称ConfigurationManager".

The error message reads: The name 'ConfigurationManager' does not exist in the current context.

推荐答案

添加对 System.Configuration.dll 的引用.

Add a reference to System.Configuration.dll.

这篇关于无法访问 Windows 窗体应用程序中的 ConfigurationManager.AppSettings的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆