c# - ConfigurationManager - How to use connection strings with .NET 3.5? -


I see a great post about what I want to do here,

This configuration manager asks to use the class. I can not reference the configuration manager class.

If I am seeing system.dll, which I am using (which is v2.0.50727), there is no configuration manager.

I am using VS 2008, and my project is set to be compiled as .NET 3.5.

If I do this,

  string test = System.configuration.ConfigurationManager.AppSettings ["test"];  

The message 'error 182' is not present in the name or name space name 'Configuration Manager' namespace 'System.configuration' (Do you have an assembly reference unavailable?) '

>

Any thoughts?

is part of the configuration manager system. Configuration Namespace By default it is not referred to in projects, so if any reference to GAC adds.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -