M
Mike Smith
I have an application which is similar in function to Setup.exe. The user
downloads it, uses it once in most cases and throws it away. I am trying to
coax .NET into making it one file and it is fighting me all the way.
If I do a full build from my source files I get what I want, one exe file.
The problem comes when build the program as a library and then try to make
an exe file out of it. I have to add this extra step because the code
obfuscator works on libraries, it cannot take a "signed and sealed" exe file
and obfuscate it into another exe. If I try to add the library to a Visual
Studio project it simply creates a reference to the external module. I get
a tiny exe file which breaks if run without the larger module file in the
same directory. I tried using the AL.exe tool which has an /embed directive
which looked promising but that turns out to only embed resources.
Does anyone have a solution to this? Maybe there are security issues or
something that would cause Microsoft to disallow embedding of libraries
without source code. It seems like a strange restriction.
downloads it, uses it once in most cases and throws it away. I am trying to
coax .NET into making it one file and it is fighting me all the way.
If I do a full build from my source files I get what I want, one exe file.
The problem comes when build the program as a library and then try to make
an exe file out of it. I have to add this extra step because the code
obfuscator works on libraries, it cannot take a "signed and sealed" exe file
and obfuscate it into another exe. If I try to add the library to a Visual
Studio project it simply creates a reference to the external module. I get
a tiny exe file which breaks if run without the larger module file in the
same directory. I tried using the AL.exe tool which has an /embed directive
which looked promising but that turns out to only embed resources.
Does anyone have a solution to this? Maybe there are security issues or
something that would cause Microsoft to disallow embedding of libraries
without source code. It seems like a strange restriction.