P
P
Peter2017-09-26 18:56:03
C++ / C#
Peter, 2017-09-26 18:56:03

Is it possible to "fold" all dll libraries in a project into one executable file?

Good afternoon. I wrote a program using third-party dll libraries. Can I somehow put all these dlls into the exe file of the program? So that the user receives only one file and this is executable.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Peter, 2017-09-26
@Morpheus_God

Can.
1. You place all your dlls in the resources of the exe file
2. At the start, the exe subscribes to the AssemblyResolve of the current domain.
2.1. You pull out dll from a resource
2.2. Get content and
return AppDomain.CurrentDomain.Load(bytes);

A
Alexander, 2017-09-29
@Adler_lug

There is also ILRepack

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question