https://bugzilla.novell.com/show_bug.cgi?id=405574
Summary: ConfigurationManager.OpenExeConfiguration
incompatibility with .NET
Product: Mono: Class Libraries
Version: unspecified
Platform: i386
OS/Version: SLES 10
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Configuration
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: Third Party Developer/Partner
In the returned Configuration object from
"ConfigurationManager.OpenExeConfiguration", .NET has a filename associated
while mono does not. I've included a simple test case and results from mono svn
and .net.
using System;
using System.Configuration;
namespace Test
{
public class TestClass
{
static void Main ()
{
System.Configuration.Configuration config = null;
config = ConfigurationManager.OpenExeConfiguration
("");
Console.WriteLine ("\"{0}\"", config);
Console.WriteLine ("\"{0}\"", config.FilePath);
}
}
}
compile with
$ gmcs test.cs -r:System.Configuration.dll
Output on Mono JIT compiler version 1.9 (/trunk/ r104605)
[EMAIL PROTECTED]:/tmp$ /opt/mono/bin/mono test.exe
"System.Configuration.Configuration"
""
Output on .NET
C:\Documents and Settings\chergert\Desktop>test
"System.Configuration.Configuration"
"C:\Documents and Settings\chergert\Desktop\test.exe.config"
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs