我有一个小型 C# 应用程序,我想将其转换为本机可执行二进制文件。
csc Foo.cs
运行时没有警告,我可以毫无问题地运行应用程序:mono Foo.exe
.
但是,当我启动 mkbundle 时,我收到此错误:
$ mkbundle Foo.exe
Failure to load i18n assemblies, the following directories were searched for the assemblies:
Path: .
In Custom mode, you need to provide the directory to lookup assemblies from using -L
ERROR: Couldn't load one or more of the i18n assemblies: Failed to load I18N.dll
我在通过 using/usr/lib/mono/...
将其中一个的父目录传递给之后发现了 I18N.dll 的各种版本,这一切都有效。mkbundle
-L
但为什么我必须这样做?-L
我在网上找到的任何示例中都没有使用该选项。
我是否处于“自定义模式”?如果是这样,什么是自定义模式?我宁愿认为这是缺少环境变量的问题,但我不知道我必须改变什么。
非常感谢!