https://bugzilla.novell.com/show_bug.cgi?id=749206
https://bugzilla.novell.com/show_bug.cgi?id=749206#c0 Summary: C# 4.0 compiler references system assemblies by default via CSharpCodeProvider Classification: Mono Product: Mono: Compilers Version: SVN Platform: 64bit OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=478238) --> (http://bugzilla.novell.com/attachment.cgi?id=478238) Test program User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 Iceweasel/9.0.1 Using CSharpCodeProvider with dmcs / C# 4.0, it seems e.g. System.dll is referenced by default for the code compiled by CSharpCodeProvider. This results in an error about a duplicate reference when adding System.dll manually via the CompilerParameters. gmcs doesn't have this problem and neither has MS csc. It also works with the Mono C# compiler version 2.10.8.1, but not with the current version in the Git repository (SHA 163f9061e1) Reproducible: Always Steps to Reproduce: 1. Compile attached program with dmcs 2. Execute the result 3. See the error message from CSharpCodeProvider 4. Try the same with gmcs to see that it works there Actual Results: (0,0) : error CS1703: An assembly with the same identity `System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has already been imported. Consider removing one of the references (0,0) : error : /opt/mono-git/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll (Location of the symbol related to previous error) (0,0) : error : System.dll (Location of the symbol related to previous error) Expected Results: No error -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
