凍結されたDebian7.0Testing/Wheezyを実行しています。
これが私のC#サンプルコードです:
using System.Windows.Forms;
using System.Drawing;
public class Simple : Form
{
public Simple()
{
Text = "Simple";
Size = new Size(250, 200);
CenterToScreen();
}
static public void Main()
{
Application.Run(new Simple());
}
}
System.DrawingとSystem.Windows.Formsの参照を使用し、次のコマンドでコンパイルするときにコマンドラインで、Monodevelopで動作する上記のC#WinFormsコードサンプルを取得しました。
mcs /tmp/Simple.cs -r:/usr/lib/mono/4.0/System.Windows.Forms.dll \
-r:/usr/lib/mono/4.0/System.Drawing.dll
mcs
スイッチ/パラメーターを使用せずにコマンドを機能させようとしてい-r
ます(ちなみに、man mcsを調べても情報を見つけることができません-基本的にこのスイッチ/パラメーターはランダムなWebサイトで見つかり、機能しました) 。
一時的に動作するかどうかを確認するために、
export PATH=$PATH:/usr/lib/mono/4.0/System.Windows.Forms.dll:/usr/lib/mono/4.0/System.Drawing.dll
を発行する前にmcs /tmp/Simple.cs
、次の出力内のエラーで失敗しました。
deniz@debian:~$ cd /tmp
deniz@debian:/tmp$ export PATH=$PATH:/usr/lib/mono/4.0/System.Windows.Forms.dll:/usr/lib/mono/4.0/System.Drawing.dll
deniz@debian:/tmp$ mcs Simple.cs
Simple.cs(1,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
Simple.cs(2,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing an assembly reference?
Compilation failed: 2 error(s), 0 warnings
deniz@debian:/tmp$
上記の出力は、mcsコンパイラ/ユーティリティがdllファイルを認識していないことを示していますが、他に何を試すべきかわかりません。
WinFormsおよびDrawingライブラリを自動的に「確認」するための支援をいただければ幸いです。