System.ServiceProcess

  • Thread starter Thread starter Luke Davis
  • Start date Start date
L

Luke Davis

This class is not showing up in C# Visual Studio Express

Any ideas? Is this class antiquated?
 
Luke said:
This class is not showing up in C# Visual Studio Express

Any ideas? Is this class antiquated?

You mean "deprecated". No, it's not, and if it were, it would still show up.

System.ServiceProcess is not a class, it's a namespace. System.ServiceBase
is a class. You need to add a reference to the "System.ServiceProcess"
assembly in your project. Note that Visual Studio Express does not have a
"Windows Service" project type, but you can still write them manually by
creating a console application and deriving a class from ServiceBase.
 
Jeroen said:
You mean "deprecated". No, it's not, and if it were, it would still show
up.

System.ServiceProcess is not a class, it's a namespace.
System.ServiceBase is a class.

System.ServiceProcess.ServiceBase, obviously...
 
Thank you for answering my dumb question. I need to reference the
System.ServiceProcess assembly.
 
Back
Top