June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to compile code from a string or a source file using a custom .NET program.
Use the Microsoft.VisualBasic.VBCodeProvider to create an ICodeCompiler object.
The .NET Framework allows you to access the Microsoft Visual Basic, Visual C#, Visual J#, and JScript language compilers. To compile code using one of these engines, you call the CreateCompiler method of the appropriate code provider class. (In the case of Visual Basic .NET, this class is Microsoft.VisualBasic.VBCodeProvider.) The CreateCompiler method returns an ICodeCompiler object that allows you to create assemblies in memory or on disk.
Compiling code can be a painstaking task. You need to ensure that you supply all the ...
Read now
Unlock full access