Is it possible an application that references multiple libraries to compile only into a .exe file and not .exe + all the .dlls?
I know I can rename all the namespaces to match that of the application, but I don’t want to do this.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, use the tool called ILMerge by Microsoft. After you build your projects it will let you combine all of the dll’s in to one exe.
Here is a CodeProject Tutorial showing you how to use it
UPDATE: as Blindy mentioned If your code uses anything in the
Reflectionnamespace you may run in to problems after you merge the files. It is a place to start looking if you start getting errors while running your program after you have merged.