Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I include dll in exe (in Visual Studio)? [duplicate]

Possible Duplicate:
.NET windows application, can it be compressed into a single .exe?

To run my App I need AxInterop.WMPLib.dll and Interop.WMPLib.dll that are located in Debug and Release folder. Is there any way to include those dlls into exe so my app is available in one file only?

like image 681
IAdapter Avatar asked Jan 25 '09 00:01

IAdapter


People also ask

Can you compile a DLL into an EXE?

Yes, it is possible to merge . NET executables with libraries. There are multiple tools available to get the job done: ILMerge is a utility that can be used to merge multiple .

Is DLL and EXE same?

EXE is an extension used for executable files while DLL is the extension for a dynamic link library. 2.An EXE file can be run independently while a DLL is used by other applications. 3. A DLL file can be reused by other applications while an EXE cannot.


1 Answers

As long as your DLLs are .NET assemblies, then ILMerge should be able to combine your exe and all of its dependencies into a single file.

like image 99
Juliet Avatar answered Sep 28 '22 06:09

Juliet