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

Any ideas? Is this class antiquated?

Re: System.ServiceProcess by Jeroen

Jeroen
Sat Mar 08 16:33:12 CST 2008

Luke Davis wrote:
> 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.

--
J.

Re: System.ServiceProcess by Jeroen

Jeroen
Sat Mar 08 16:33:46 CST 2008

Jeroen Mostert wrote:
> Luke Davis wrote:
>> 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.

System.ServiceProcess.ServiceBase, obviously...

--
J.

Re: System.ServiceProcess by Luke

Luke
Sat Mar 08 19:18:19 CST 2008

Thank you for answering my dumb question. I need to reference the
System.ServiceProcess assembly.




Jeroen Mostert wrote:
> Jeroen Mostert wrote:
>> Luke Davis wrote:
>>> 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.
>
> System.ServiceProcess.ServiceBase, obviously...
>