CodeDOM Application Sample
This sample illustrates features of the .NET Framework CodeDOM.
For information about using the samples, see the following topics:
To build the sample using the Command Prompt
Open the Command Prompt window and navigate to one of the language-specific subdirectories under the CodeDOMSample directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings.
Type msbuild CodeDOMSampleCS.sln or msbuild CodeDOMSampleVB.sln, depending on your choice of programming language.
To build the sample using Visual Studio
Open Windows Explorer and navigate to one of the language-specific subdirectories under the CodeDOMSample directory.
Double-click the CodeDOMSampleCS.sln or CodeDOMSampleVB.sln file, depending on your choice of programming language, to open the file in Visual Studio.
On the Build menu, click Build Solution.
To run the sample
In the Command Prompt window, navigate to the directory that contains the new executable.
Type codedomsample at the command line with the following arguments:
The programming language in which files need to be generated. Specify VB or C#. Note that "VB" and "C" must be in uppercase.
Optional. Path for generated files.
codedomsample VB c:\temp
This sample builds a console application. You must launch and run it using the Command Prompt to view its output.