The type name 'ServiceController' could not be found in the namespace 'System.ServiceProcess'.
As it says, I have
using System.ServiceProcess
but still I'm not able to create a ServiceController variable5 Replies
Using .NET 6 and also tried .NET Core 3.1
I need that to connect to other computer and check in which state services there are
show us the project file
This?
the csproj file
Okay, I just fixed that by running a CMD command
dotnet add package System.ServiceProcess.ServiceController --version 6.0.0
lol
Thank you for your help @AntonC anyway!