- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我有一个小型 C# 应用程序,我想将其转换为 native 可执行二进制文件。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
我在 /usr/lib/mono/...
找到了 I18N.dll 的各种版本,并且在将其中一个的父目录传递给 mkbundle
之后使用 -L
,一切正常。
但为什么我必须这样做? -L
选项未在我在网上找到的任何示例中使用。
我是否处于“自定义模式”?如果是这样,什么是自定义模式?我更希望这是缺少环境变量的问题,但我不知道我必须更改什么。
非常感谢!
最佳答案
如果您的程序集不使用国际化 (i18n),请尝试 mkbundle --i18n none
关于c# - Linux 上的单声道 : mkbundle does not find shared libraries,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50356909/
我有一个 .Net 程序,使用“mono Program.exe”可以正常工作,但现在我尝试在同一台机器上使用“mkbundle -o prog Program.exe --deps”,它返回以下错误
我有一个 Windows 服务,想在 Linux 上使用 Mono 运行。我可以使用单一服务将其作为服务运行,并且效果很好。 我还想mkbundle该应用程序以简化最终用户的部署,这样他们就不需要自己
我正尝试在 Linux 上使用 Mono 为我的 .net 应用程序创建一个包。当我执行如下 mkbundle 命令时 - $>mkbundle -o ConsoleApp ConsoleApp.ex
我正在尝试使用 mono 的 mkbundle 创建一个独立的 C# 应用程序,我安装了 Xcode 和 Mono 开发工具包(我确定它是 MDK 而不是运行时)。但是我运行 mkbundle 使用m
我可以从我的 MonoDevelop C# 项目成功构建一个捆绑的 exe,但是当我运行 bundle 时,它什么也没做;执行会立即安静地终止。我做错了什么? 我在 64 位 Windows 7 上使
我正在尝试构建 this C# program使用 MkBundle 以便用户可以在 Linux 上运行它而无需安装 Mono。 但在尝试使用构建的程序时,我总是遇到错误。 重现步骤: Git 克隆这
我可以使用 mkbundle 命令构建一个包。之后,当我尝试在另一个未安装 Mono 的 Linux 系统中运行该应用程序时,该应用程序未执行且没有错误。 最佳答案 单独使用 Mkbundle 将构建
我正在使用 mkbundle 并尝试创建一个使用 Isis2 的小程序 IdaTester 的嵌入式版本。该系统反过来使用依赖于 MonoPosixHelper 的 Mono 特性 我的问题是 mkb
我写了一些控制台“Hello world”之类的应用程序。并已关注 c# cywgwin mono mkbundle windows 7 - cannot compile file回答。但我有: $
我正在尝试构建一个需要在可能未安装 .NET 的环境中运行的控制台实用程序。 Mono 的 mkbundle 似乎是解决这个问题的好方法,但是当通过 cygwin 在 Windows 10 上的一个小
我正在尝试将我在 archlinux 上的 monodevelop 中制作的应用程序捆绑在一起。 在 monodevelop 中构建应用程序后,我将使用以下命令打包: mkbundle --deps
已经有相当多的人提到了 Mono 实用程序 mkbundle,它应该(除其他外)允许您使用用 Mono 编译的 C# 项目创建一个包(独立的 .exe)。这在我在 Cygwin 中运行时有效,但是我真
Mono 生成的普通 EXE 在 IL 中。我想生成 native 可执行文件,使用 mkbundle 生成 native Exe 还是应该使用 Mono AOT。 最佳答案 是的,mkbundle
尝试为可在 Linux 上运行的控制台创建一个独立的应用程序,工作环境在 Mac os x 10.7 上。 1.) 打开 Monodevelop 并创建新的解决方案,一个“C# 控制台项目”。 2.)
我正在尝试按照以下帖子使用 cygwin 构建一个嵌入了单声道的 c# 应用程序。 我正在按照此处的指南进行操作:How to convert a simple .Net console projec
我有一个小型 C# 应用程序,我想将其转换为 native 可执行二进制文件。csc Foo.cs 运行时没有警告,我可以毫无问题地运行应用程序:mono Foo.exe。 然而,当我启动 mkbun
我是一名长期的 C# 开发人员,但不熟悉 Mono,尤其是 Gtk#。我使用 C# 和 Gtk# 开发了一个小应用程序。我需要这个应用程序在 Windows、Linux 和 Mac 上运行,所以我决定
我有一个示例 .NET 应用程序可以在 Windows 上正常运行,而我的 Ubuntu 环境则使用单声道。 我正在尝试使用 Mkbundle 创建单个 native 程序集,以便我可以使用 busy
我一直在尝试使用 mkbundle 编译或捆绑我的应用程序。这是我正在执行的脚本: set -o errexit set -o nounset mono_version="3.2.3" export
我想看看是否可以通过使用 Mono 的 AOT(提前编译器)来减少 VM 延迟。如何运行 .so 文件? (抱歉,这个问题太初级了;我在 Mono 的文档中找不到简单的答案)。 我想出了如何使用 mk
我是一名优秀的程序员,十分优秀!