I want to build a application which generate .exe file at runtime plz help oks
form any question reply
Printable View
I want to build a application which generate .exe file at runtime plz help oks
form any question reply
Give up now, you're wasting your time.
what does run time mean ???:rolleyes:
The time that the program is running, literally.
as opposed to design time which is the time you spend writing code.
Runtime also means the program running on the target user's machine.
Check out the namespace System.CodeDom.Compiler and in particular the classes System.CodeDom.Compiler.CodeGenerator and System.CodeDom.Compiler.CodeCompiler
but be prepared to do much work...
Where would vbc.exe fit into this situation?
If you build the solution,project, and code files right, you should just be able to shell out to vbc.exe, no?
vbc.exe is a wrapper around the ICodeCompiler.CompileAssemblyFromFile implementation in the VBCodeProvider class....
Quote:
VBCodeProvider
Namespace: Microsoft.VisualBasic
Provides access to instances of the Visual Basic code generator and code compiler.
I see. All makes sense now.
So doesn't that mean what Trunks said, generate the .SLN and .VBProj and .VB files correctly and all you'd need is vbc.exe?