Export (0) Print
Expand All
3 out of 6 rated this helpful - Rate this topic

CodeDOM Application Sample 

Download 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

  1. 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.

  2. Type msbuild CodeDOMSampleCS.sln or msbuild CodeDOMSampleVB.sln, depending on your choice of programming language.

To build the sample using Visual Studio

  1. Open Windows Explorer and navigate to one of the language-specific subdirectories under the CodeDOMSample directory.

  2. Double-click the CodeDOMSampleCS.sln or CodeDOMSampleVB.sln file, depending on your choice of programming language, to open the file in Visual Studio.

  3. On the Build menu, click Build Solution.

To run the sample

  1. In the Command Prompt window, navigate to the directory that contains the new executable.

  2. Type codedomsample at the command line with the following arguments:

    • lang

      The programming language in which files need to be generated. Specify VB or C#. Note that "VB" and "C" must be in uppercase.

    • path

      Optional. Path for generated files.

    Example:

    codedomsample VB c:\temp

NoteNote

This sample builds a console application. You must launch and run it using the Command Prompt to view its output.

Remarks

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.