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