I wanted to know if it was possible to include the dll in the executable in such a way that everything is included in a single executable file in Visual Studio 2012 with C #
I wanted to know if it was possible to include the dll in the executable in such a way that everything is included in a single executable file in Visual Studio 2012 with C #
You can't include the entire framework itself, but you can include your DLLs, and third-party DLLs using ILMerge
Usage example:
In a standard way, what you are proposing cannot be achieved.
If you could analyze, yes. Perhaps creating one
Aplicación Portable
that allows you to encapsulate your application alongside the .net framework, although it's not a simple thing to do."Could analyze the use of the Tools
Well look, you can include your dlls in references and also add them in Resources, then you can copy those dlls if they do not exist in the same folder as your executable file when you start your application, in this way when you run your application it will copy those dlls that are missing:
For example in this way:
pathname: root directory, resourcename : name of your dll