Error: The name 'ConfigurationManager' does not exist in the current context

后端 未结 4 985
醉话见心
醉话见心 2021-02-04 23:06

I have included the following statement in my Visual C# Console Application (Visual Studio 2005 .NET 2.0 Framework)

using System.Configuration;

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-04 23:40

    Philip was correct adding the reference helped me, but I actually went and tried to download the DLL because I did not know there was an easier way...

    1. right-click on 'add references' folder in the solution explorer
    2. select the '.NET' tab
    3. search for the .NET reference you would like to add (in this case System.Configuration)

    This post was very helpful to me, thanks to all.

提交回复
热议问题