[Mono-list] is System.Net missing?

Atsushi Eno atsushi at ximian.com
Mon Nov 21 13:47:34 EST 2005


What is System.Sockets?

I guess, you are writing the exact source you are compiling (which will
result in confusion). TcpClient is in System.dll, which you don't have
to specify with -r option.

(BTW, you had better just copy the exact error message than interpreting
by your own. No one can guess what you think exactly, but can guess what
might be happening from the exact error message ;-)

Cheers,
Atsushi Eno

> I'm using:
> 
> using System.Net;
> using System;
> using System.Sockets;
> 
> public class tcp {
>       TcpClient client = new TcpClient();
>       ......
> }
> 
> and try compile with mcs file.cs but show up the message saying that
> could not found System.Net
> 
> did you know what's library i need add to my project to work ?
> 
> On 11/21/05, Atsushi Eno <atsushi at ximian.com> wrote:
> > Hi,
> >
> > > I try to use System.Net in my application, but when i try to compile,
> > > i get a error saying that could not found System.Net in namespace. I
> > > try to use -r:System.Net but dont works too.
> >
> > -r option is to specify an *assembly*, not a *namespace*. Unless there
> > is
> > System.Net.dll (it actually isn't) mcs reports an error (I don't think
> > mcs reports something like "could not found System.Net in *namespace*").
> >
> > You don't have to specify -r:System.dll or -r:mscorlib.dll (unless you
> > use
> > -noconfig and/or -nostdlib).
> >
> > Atsushi Eno
> >
> >
> >
> 
> 
> --
> "A fé remove montanas, mas eu prefiro a dinamite"



More information about the Mono-list mailing list