2014-12-04 76 views
2

我想在Linux上使用Mono为我的.net应用程序创建一个包。当我执行如下的mkbundle命令时 -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从当前目录加载文件。

感谢, Omky

回答

3

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

mkbundle -o ConsoleApp ConsoleApp.exe sharedassembly.dll --deps 
+0

通配符工作太:mkbundle -o ConsoleApp ConsoleApp.exe * .DLL --deps – Will 2015-11-20 20:44:13