[Mono-bugs] [Bug 694760] New: 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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 19 00:32:17 EDT 2011


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: mono-bugs at lists.ximian.com
        ReportedBy: alex_syd1 at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list