[Mono-bugs] [Bug 75931][Nor] New - Configuration file based on assembly name not the executable name.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 29 15:14:40 EDT 2005


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 ikkuh at onshuis.tk.

http://bugzilla.ximian.com/show_bug.cgi?id=75931

--- shadow/75931	2005-08-29 15:14:40.000000000 -0400
+++ shadow/75931.tmp.10597	2005-08-29 15:14:40.000000000 -0400
@@ -0,0 +1,49 @@
+Bug#: 75931
+Product: Mono: Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: Ikkuh at Onshuis.tk               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Configuration file based on assembly name not the executable name.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Mono uses a different method of finding the .config file of an application.
+Mono uses the assembly name during compilation, Microsoft uses the
+executable name.
+
+Steps to reproduce the problem:
+1. Compile an application origional.exe that uses a config file
+(origional.exe.config).
+2. Rename the executable to a.exe and the config to a.exe.config
+3. Run a.exe
+
+Actual Results:
+Mono it will try to load originonal.exe.config
+
+Expected Results:
+Using Microsoft.Net it will load a.exe.config
+
+How often does this happen? 
+This occurrs every time, you can also do:
+Console.WriteLine("{0}",
+AppDomain.CurrentDomain.SetupInformation.ConfigurationFile);
+This will also show the difference in the config files.
+
+Additional Information:
+I have an executable that dynamically loads some plugins based on the
+config files, by having different configs the usage of the application
+changes (actually the entire application is a plugin) and so I'd like to be
+able to rename the exectuable to reflect the usage.


More information about the mono-bugs mailing list