Run Sample Code from
Visual StudioLast Updated January 23, 2025
You can build C#
.NET samples using Microsoft Visual C# 2008 Express or Microsoft Visual Studio
2008.
- Start Visual Studio.
- Open theSample2008.slnsolution file.
- Change the Project Properties to specify the command line arguments:
- From theProjectmenu, selectPropertiesto display theProperty Pagesdialog.
- In the Project_Name Property Pages dialog, selectConfiguration Properties—Debuggingon the left.
- In the right‐hand pane (under Start Options), selectCommand Line Arguments.
- ClickOKto save your changes.
- Run the sample code at the command prompt.