You must add [assembly: Instrumented("root/YOURPATH")] in the base assembly and register it to WMI using Installutil.exe or Instrumentation.RegisterAssembly.
By the way, the way you formulated your question helped me found what was wrong with my code... Thanks!
Quote:
|
Originally Posted by orencs
I have define an Instrumentation class in assebley A
[InstrumentationClass(InstrumentationType.Abstract) ]
public class WMIBase: System.Management.Instrumentation.Instance
{
}
and I want to inherit from it in assembly B.
when I ran InstallUtil the inhrit class does not apear to be installed does anyone have and idea why?
[if I define the base class in the derived assembly it works fine.]
|