Какая графическая библиотека на С# работает в linux-e?

Решил помочь @Ivan-у и собрал код :

введите сюда описание изображения

и получил такой результат :

comp@comp0:~/Qt_project/TCP_IP$ mcs tehn5.cs 
tehn5.cs(4,14): error CS0234: The type or namespace name `Data' does not exist in the namespace `System'. Are you missing `System.Data' assembly reference?
tehn5.cs(5,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing `System.Drawing' assembly reference?
tehn5.cs(9,22): error CS0234: The type or namespace name `Forms' does not exist in the namespace `System.Windows'. Are you missing `System.Windows.Forms' assembly reference?
tehn5.cs(13,38): error CS0246: The type or namespace name `Form' could not be found. Are you missing an assembly reference?
Compilation failed: 4 error(s), 0 warnings

как избавиться от библиотеки using System.Windows.Forms; и заменить на кросс-платформенный вариант (к примеру Qt :3) ??


Ответы (1 шт):

Автор решения: timob256

Спасибо @tym32167 :3

Эта статья очень, помогла.

Вот код в файле tehn6.cs:

using System;
using System.Windows.Forms;

public class Program
{
    [STAThread]
    public static void Main()
    {
        var f = new Form();
        f.Text = "Hello World";
        Application.Run(f);
    }
}

вот собираю и запускаю :

comp@comp0:~/Qt_project/TCP_IP$ mcs tehn6.cs -r:System.Windows.Forms.dll
comp@comp0:~/Qt_project/TCP_IP$ mono tehn6.exe 
Gtk-Message: 16:46:06.675: Failed to load module "canberra-gtk-module"

введите сюда описание изображения

→ Ссылка