jjzjj

BrainiacV2

全部标签

.net - 从 MS 示例创建 Windows 服务时出现错误 "Could not find xxxx.Program specified for main method"

我正在关注thisMicrosoftguidetocreateawindowsservice.但是,当我尝试在名为“Program.cs”的自动生成页面上构建它时里面有这段代码namespaceBetfairBOTV2Service{staticclassProgram{//////Themainentrypointfortheapplication.///staticvoidMain(){ServiceBase[]ServicesToRun;ServicesToRun=newServiceBase[]{newBrainiacVersion2()//notgreenthough!!!!