我创建了一个类继承 ServiceBase 的 Lib 项目,但是当我运行解决方案时,我没有得到 EXE 文件?
public class Scheduler : ServiceBase
{
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[] {new Scheduler()};
Run(ServicesToRun);
}
}