Compile DLL with EXE

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
5 posts Page 1 of 1
Contributors
User avatar
MrMichael
New Member
New Member
Posts: 17
Joined: Tue Feb 16, 2010 3:23 pm

Compile DLL with EXE
MrMichael
How i can compile a dll with my program?
No archive or any of this things...
Only if i can include dll in my project, and when i run program, that will load dll file from inside.
Thanks.
If somebody helps you, don't forget to say "Thank You!".
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Compile DLL with EXE
MrAksel
Do you want to compile a DLL with your program, or load a DLL at runtime? Its a bit unclear.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
MrMichael
New Member
New Member
Posts: 17
Joined: Tue Feb 16, 2010 3:23 pm

Re: Compile DLL with EXE
MrMichael
I want to include it in project, but to do not appear in debug directory.
I want to run program if it isn't there...
Now i am trying with ilmerge...
If somebody helps you, don't forget to say "Thank You!".
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Compile DLL with EXE
mandai
If you want to compile at runtime you will need to store the DLL file outside of the program.
User avatar
MrMichael
New Member
New Member
Posts: 17
Joined: Tue Feb 16, 2010 3:23 pm

Re: Compile DLL with EXE
MrMichael
I know...
I made a folder in D called IlMerge, i copied my program and dll in that folder.
I opened cmd, and i entered :
cd [il merge folder]
ilmerge /target:winexe /out:Out.exe D:\IlMerge\program.exe D:\IlMerge\file.dll

And appears an error...
Anyway...i will let it .dll ...
If somebody helps you, don't forget to say "Thank You!".
5 posts Page 1 of 1
Return to “Coding Help & Support”