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 <[EMAIL PROTECTED]> 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"
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to