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

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.
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top