C++ Wmi App to C# Wmi App - System.Mgmt Access

  • Thread starter Thread starter Jerry
  • Start date Start date
J

Jerry

I have an existing C++ Wmi App developed with v6.0 that I
am now converting to C#.

To do so I need FCL Namespace System.Management but "Using
System.Management;" bombs out with a build error
saying "Management does not exist in namespace System".

I have all the latest SDKs, am using VS .Net Pro, and my
C++ Wmi App (built with v6.0) works just fine.

Anyone know what I am missing? Many thanks.
 
Jerry,

You will have to add a reference to System.Management.dll in your
project. The using statement is nothing more than declaring a shorthand for
the namespace, not a declaration of a reference to another assembly.

Hope this helps.
 
Back
Top