Welcome to TechNet Blogs Sign in | Join | Help
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:  http://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: http://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.

Posted: Thursday, August 21, 2008 9:27 AM by HowardHao

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker