2014-12-04 73 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