Bundle.net exe, dlls, .net and native dll in one exe

I am trying to link my C # application (.exe) with its dependent dlls, the native dll and the necessary .net assemblies for a single exe using mkbundle.

So, first of all, can this be done using mono mkbundle?

If yes, when I try to do this with the command

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

At compilation

 as -o temp.o temp.s 

I get an error:

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

I found somewhere that I need to install gcc, gcc-mingw and both packages. (So ​​in the original). I installed gcc, gcc-mingw, but I don’t know where to find packages that are an error. Please suggest if there is another way to do this. Thanks

+6
source share
2 answers

You can use ILMerge

For a Native DLL, you can embed the DLL as an application resource and retrieve the resource to disk at run time.

+1
source

You can do this directly from your application,

0
source

Source: https://habr.com/ru/post/976161/


All Articles