Compile a .NET application into a self-contained executable

1

I was wondering if it is possible to compile a .NET Framework application into just one executable file. Without there being .dll external files.

I did some research but I did not succeed.

    
asked by anonymous 06.04.2018 / 19:34

2 answers

1

If you just want to put it all together just use ILMerge.exe . It is a standard .NET Framework tool.

If you can accept a DLL you can use .NET Core , but you can not run any application.

If you want an even (unmanaged) executable, you can use .NET Native , but you are not yet available for all types of applications. The Mono already .

    
09.04.2018 / 05:12
0

You can use Costura to merge all application dependencies into just .exe .

Just add to your project, that when you install the package, a .xml file with the merger , and a new import is added to .csproj that brings the targets that Costura needs to merge the application during the build phase.     

11.04.2018 / 14:18