Run Sample Code from Visual Studio
Last Updated January 23, 2025

You can build C# .NET samples using Microsoft Visual C# 2008 Express or Microsoft Visual Studio 2008.
  1. Start Visual Studio.
  2. Open the
    Sample2008.sln
    solution file.
  3. Change the Project Properties to specify the command line arguments:
    1. From the
      Project
      menu, select
      Properties
      to display the
      Property Pages
      dialog.
    2. In the Project_Name Property Pages dialog, select
      Configuration Properties—Debugging
      on the left.
    3. In the right‐hand pane (under Start Options), select
      Command Line Arguments
      .
    4. Click
      OK
      to save your changes.
  4. Run the sample code at the command prompt.