Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Samples
Application Samples
 CodeDOM Application Sample

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Samples
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

  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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker