質問
私は、モノとのバンドルを作ろうとかなりの時間を費やしてきました。私が言ってうまくプログラムを実行することができます。
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を入れてみました、それはジェネリックリスト型のロードエラーを解決し、今私はストップウォッチとセマフォタイプのロードエラーを取得しています。
どのように私は?私はそれに必要なすべてのこれらのタイプのバンドルを行うことができます。
解決
あなたは2.0ランタイムにリンクmkbundle2
を、したいように見えます。
所属していません StackOverflow