且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

类型或命名空间名称'的ServiceController“找不到

更新时间:2023-02-16 14:46:05

您需要添加一个引用到System.ServiceProcess.dll

You need to add a reference to the System.ServiceProcess.dll

类型或命名空间名称'的ServiceController“找不到

在这之后,你就可以看到它在Visual Studio中,作为使用语句,你可以添加到您的项目之一:

After that, you will be able to see it in Visual Studio, as one of the using statements you can add to your project:

类型或命名空间名称'的ServiceController“找不到