开发者

Unable to access ConfigurationManager.AppSettings in a Windows Forms Application

开发者 https://www.devze.com 2022-12-13 00:09 出处:网络
How can I access ConfigurationManager.开发者_运维知识库AppSettings in my Windows Forms Application?

How can I access ConfigurationManager.开发者_运维知识库AppSettings in my Windows Forms Application?

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


Add a reference to System.Configuration.dll.


I've had this experience before where I had to go and add a reference to System.Configuration to be able to use this funcitonality.


Right click on your project in the solution explorer, select Add Reference then select the .Net tab (it should be selected by default), and select System.Configuration

0

精彩评论

暂无评论...
验证码 换一张
取 消