System.Configuration.ConfigurationManager not available?

后端 未结 8 1281
南方客
南方客 2020-12-09 07:30

In a VS2005 C# project I have added a reference to System.configuration. In the object browser, I can see the System.Configuration.ConfigurationManager. In Intellisense Syst

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 07:58

    Although the using System.Configuration; command is automatically generated in the using section, for some reason the actual reference is not set.

    Go into add reference, .Net tab, and choose System.Configuration.

    ConfigurationManager will now be resolved.

    If you go to the project where the exact same setup works just fine and look at the references, you will see a reference to System.Configuration.

提交回复
热议问题