Where is ConfigurationManager's namespace?

后端 未结 7 1133
半阙折子戏
半阙折子戏 2021-01-01 09:43

I\'ve got a reference to System.Configuration - and ConfigurationSettings is found no problem - but the type or namespace \'ConfigurationMana

7条回答
  •  天命终不由人
    2021-01-01 09:52

    You need to use the System Configuration namespace, this must be included in two ways:

    1. Right click the project and choose add reference, browse "Assemblies" and tick the System.Configuration assembly.

    2. Include the namespace in code:

      using System.Configuration;

提交回复
热议问题