Build and Run C# Samples
To build and run each sample in C#, here are the steps:
1. Create a new project:
2. Add a new class and name it as common.cs:
3. Copy the common library code from: https://msdn.microsoft.com/en-us/library/cc723869(VS.85).aspx and paste it into common.cs
4. Copy the C# sample and paste it into program.cs, for example: https://msdn.microsoft.com/en-us/library/cc723870(VS.85).aspx
5. Add System.Management as reference:
That is it. The sample project is ready to run.
Cheers,
Howard.
Comments
- Anonymous
January 01, 2003
simple but good advice