Unable to access ConfigurationManager.AppSettings in a Windows Forms Application

前端 未结 3 979
不知归路
不知归路 2021-01-01 20:24

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

The error message reads: The name \'ConfigurationManager\' does not e

相关标签:
3条回答
  • 2021-01-01 20:30

    Add a reference to System.Configuration.dll.

    0 讨论(0)
  • 2021-01-01 20:32

    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 讨论(0)
  • 2021-01-01 20:46

    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.

    0 讨论(0)
提交回复
热议问题