2

我正在尝试在 Linux 上使用 Mono 为我的 .net 应用程序创建一个包。当我执行如下 mkbundle 命令时 -

$>mkbundle -o ConsoleApp ConsoleApp.exe  --deps
    OS is: Linux
    Sources: 1 Auto-dependencies: True
    Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'sharedassembly' or one of its dependencies. The system cannot find the file specified.
File name: 'sharedassembly'

但是,sharedassembly.dll 存在于当前目录中。如何告诉 mkbundle 从当前目录加载文件。

谢谢, 奥姆基

4

1 回答 1

3

尝试显式添加sharedassembly.dll到您的 mkbundle 命令:

mkbundle -o ConsoleApp ConsoleApp.exe sharedassembly.dll --deps
于 2014-12-17T22:31:02.190 回答