使用C#写windows服务

首先,创建一个windows服务项目

原文地址:https://www.cnblogs.com/myblogslh/p/4224907.html