0

私は mono でバンドルを作成するのにかなりの時間を費やしました。私はプログラムをうまく実行できます

mono program.exe

しかし、私が言うとき

 mkbundle --deps -o test test.exe

出力します

OS is: Linux
Sources: 1 Auto-dependencies: True
   embedding: /home/chris/Documents/Depot/test/bin/Release/test.exe
   embedding: /usr/lib/mono/1.0/mscorlib.dll
   embedding: /usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
   embedding: /usr/lib/mono/gac/System/1.0.5000.0__b77a5c561934e089/System.dll
   embedding: /usr/lib/mono/gac/System.Xml/1.0.5000.0__b77a5c561934e089/System.Xml.dll
Compiling:
as -o temp.o temp.s 
cc -ggdb -o test -Wall temp.c `pkg-config --cflags --libs mono`  temp.o
Done

そして、実行しようとすると、

** (test.exe:21988): WARNING **: The class System.Collections.Generic.List`1 could not be loaded, used in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Unhandled Exception: System.TypeLoadException: A type load exception has occurred.

1.0 フォルダーから mscorlib.dll をコピーしていることに気付きました。このフォルダにバージョン 2.0 を入れてみたところ、ジェネリック リスト型のロード エラーは解決しましたが、現在、ストップウォッチとセマフォ型のロード エラーが発生しています。

必要なこれらすべてのタイプを含むバンドルを作成するにはどうすればよいですか?

4

1 に答える 1

3

mkbundle22.0 ランタイムにリンクする が必要なようです。

于 2010-03-01T11:31:16.993 に答える