https://bugzilla.novell.com/show_bug.cgi?id=706073

https://bugzilla.novell.com/show_bug.cgi?id=706073#c0


           Summary: xbuild adds reference causing type collision
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Other.
        AssignedTo: mono-bugs@lists.ximian.com
        ReportedBy: piotr.wyso...@mlabs.pl
         QAContact: mono-bugs@lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101
Firefox/5.0

I get this:
src/NetworkServices/Streams/SslStream.cs(56,17): error CS0433: The imported
type `Mono.Security.Protocol.Tls.SslStreamBase' is defined multiple times
               
/home/wysek/secpl/projects/return/return/Return/lib/Mono.Security/Mono.Security.dll
(Location of the symbol related to previous error)
               
/opt/mono-2.10.2/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
(Location of the symbol related to previous error)
src/NetworkServices/Streams/SslStream.cs(47,61): error CS0433: The imported
type `Mono.Security.Protocol.Tls.SecurityProtocolType' is defined multiple
times
               
/home/wysek/secpl/projects/return/return/Return/lib/Mono.Security/Mono.Security.dll
(Location of the symbol related to previous error)
               
/opt/mono-2.10.2/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
(Location of the symbol related to previous error)

when compiling a project using Mono.Security.dll

It seems like System.ServiceModel gets referenced (it appears on the cmdline)
even though it does not appear on the reference list in the .csproj.

Further investigation leaded to:
Dependency System.ServiceModel, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
                                        Required by NHibernate,
Version=3.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4
                                        Reference System.ServiceModel,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 resolved to
/opt/mono-2.10.2/lib/mono/4.0/System.ServiceModel.dll.

So System.ServiceModel gets referenced because of NHibernate req.

This I consider wrong, as it produces a compilation error, and there is no such
an error on MS.NET msbuild.

Compiling manually without the System.ServiceModel ref builds ok.

Reproducible: Always

-- 
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  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to