[Mono-bugs] [Bug 81224][Nor] New - ConfigurationManager is not in the System.Configuration namespace
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Mar 24 17:08:54 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by vgiszpenc at dsci.com.
http://bugzilla.ximian.com/show_bug.cgi?id=81224
--- shadow/81224 2007-03-24 16:08:54.000000000 -0500
+++ shadow/81224.tmp.29333 2007-03-24 16:08:54.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 81224
+Product: Mono: Compilers
+Version: 1.2
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com
+ReportedBy: vgiszpenc at dsci.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ConfigurationManager is not in the System.Configuration namespace
+
+The 2.0 compiler (unlike the 1.1 compiler) gives a warning when you use
+System.Configuration.ConfigurationSettings.AppSettings saying it is obsolete.
+
+This would be fine if it did not suggest to use
+System.Configuration.ConfigurationManager.AppSettings which does not exist
+in the namespace.
+
+using System;
+
+class MyPoint
+{
+ public static main(string[] args)
+ {
+ //this generates CS016
+ string x =
+System.Configuration.ConfigurationSettings.AppSettings["x"].ToString();
+
+ //this line does not compile
+ string y =
+System.Configuration.ConfigurationManager.AppSettings["y"].ToString();
+ }
+}
More information about the mono-bugs
mailing list