题
我已经花了相当多的时间试图与单束。我可以运行程序就好说
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.
我注意到它是在mscorlib.dll从1.0文件夹复制。我试图把2.0这个文件夹中,它解决了泛型列表类型的负载错误,但现在我得到一个秒表和信号类型加载错误。
我怎样才能发财了所有这些类型的,我需要它吗?
解决方案
您似乎想mkbundle2
,其链接到2.0运行。
不隶属于 StackOverflow