Answer the question
In order to leave comments, you need to log in
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
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 andreturn AppDomain.CurrentDomain.Load(bytes);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question