https://bugzilla.novell.com/show_bug.cgi?id=694760
https://bugzilla.novell.com/show_bug.cgi?id=694760#c0 Summary: When Mono is installed on a machine in more than one location, the default location is always used on non-Windows platform when dynamically generating code Classification: Mono Product: Mono: Runtime Version: 2.10.x Platform: 64bit OS/Version: Ubuntu Status: NEW Severity: Normal Priority: P5 - None Component: misc AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 The bug occurs when calling CSharpCodeProvider's compiling methods, e.g. CompileAssemblyFromSource(). Nop path is prepended to "mcs.exe" in this case, hence it's called from the default location. Reproducible: Always Steps to Reproduce: Call CSharpCodeProvider.CompileAssemblyFromSource() passing any sane parameters. Actual Results: mcs.exe is called from the default location, which is not necessary within the Mono installation currently running. Expected Results: mcs.exe should be invoked from the location within the Mono installation currently running. I needed a quick fix, so I simply hard-coded the location of my installation in mcs\class\System\Microsoft.CSharp\CSharpCodeCompiler.cs, CompileFromFileBatch() function. Obviously this is a temporary solution only. -- 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
