1.3. Create and Use a Code Module from the Command Line
Problem
You need to do one or more of the following:
Improve your application's performance and memory efficiency by ensuring the runtime loads rarely used types only when they are required.
Compile types written in VB .NET to a form you can build into assemblies being developed in other .NET languages.
Use types developed in another language and build them into your VB .NET assemblies.
Solution
Build your VB .NET source code into a module by using the command-line compiler and specifying the /target:module compiler switch. To incorporate existing modules into your assembly, use the /addmodule compiler switch.
How It Works
Modules are the building blocks of .NET assemblies and should not ...
Get Visual Basic 2008 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.