我花了相当多的时间尝试用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版本放在这个文件夹中,它解决了一般的列表类型加载错误,但现在我得到了一个秒表和信号量类型加载错误。
我怎样才能把我需要的所有这些类型打包在一起呢?
发布于 2010-03-01 19:31:17
您似乎想要mkbundle2,它链接到2.0运行时。
https://stackoverflow.com/questions/2355393
复制相似问题