2014-10-02 68 views
6

我正試圖將我的C#應用​​程序(.exe)與其依賴的dll,本機dll和所需的.net程序集捆綁到使用mkbundle的單個exe文件。Bundle .net exe,dll,.net環境和本機DLL在單個exe中

那麼,首先有可能使用mono mkbundle來做到這一點?

如果是的話,當我嘗試使用命令

C:\MyProjDir>mkbundle -o BundleName --deps OriginalAppName.exe 

做時,編譯

as -o temp.o temp.s 

我得到錯誤:

'as' is not recognized as an internal or external command, operable program or batch file. [Fail]

我發現的地方,我需要安裝gcc,gcc-mingw和軟件包。 (原文如此)。我確實安裝了gcc,gcc-mingw,但我不知道在哪裏可以找到作爲錯誤的軟件包。 請建議是否有其他方式。 感謝

回答

1

您可以使用ILMerge

對於本地DLL可以嵌入DLL作爲應用程序資源,並在執行時提取資源到磁盤。