hellowf.csというファイルがあります
class MyFirstApp {
static void Main() {
System.Windows.Forms.MessageBox.Show("Hello, Mono+WinForms!");
}
}
Ubuntu 8.10では、次のことを行います
gmcs hellowf.cs -r:System.Drawing.dll -r:System.Windows.Forms.dll
mono hellowf.exe
...そして、次のようになります。
代替テキスト http://img136.imageshack.us/img136/4674/helloproblemuk5.png
メッセージの 2 番目の部分がありません。なぜこうなった?同じバイナリ ( hellowf.exe ) は、Windows でも正常に動作します。
更新: これは本当に面倒です。これが私が持っていて、これまでにこれを機能させようとしたモノラルバージョンです:
1.9.1 (from official ubuntu repo)
2.0.1 (from some some 3rd party repo)
2.2 (wiped every mono pkg and compiled myself)
私の現在のモノバージョン:
mono --version
Mono JIT compiler version 2.2 (tarball Wed Jan 14 22:58:21 CET 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
gmcs --version
Mono C# compiler version 2.2.0.0
...手がかりはありますか?