[Mono-list] Converting Windows C# socket client to Debian

Elmar Haneke elmar at haneke.de
Wed Sep 10 08:01:50 UTC 2014


Am 09.09.2014 um 17:05 schrieb Alf C Stockton:
> mcs csharp-client-socket.cs
> csharp-client-socket.cs(2,14): error CS0234: The type or namespace name
> `Drawing' does not exist in the namespace `System'. Are you missing an
> assembly reference?
> csharp-client-socket.cs(3,14): error CS0234: The type or namespace name
> `Windows' does not exist in the namespace `System'. Are you missing an
> assembly reference?

This problem seems to be cleared by the parameters you added in the
second call.

>  mcs /reference:System.Drawing.dll /reference:System.Windows.Forms
> csharp-client-socket.cs
> csharp-client-socket.cs(21,13): error CS0103: The name
> `InitializeComponent' does not exist in the current context

You are compiling an partial class. But, there is no file with the
second part given. You have to add the autogenerated part of your class
into compilation.

Elmar



More information about the Mono-list mailing list