Keep C# application running
问题 I'm building a Windows Service that uses FileSystemWatcher, and runs in the background. I don't want to keep on uninstalling and installing the service every time I want to debug, so would like to do most of my development in a normal program before moving it into a service. But I'm quite new to this, and when I run it, it just runs through the block and exits. What would be a good way to keep the program running? 回答1: http://einaregilsson.com/run-windows-service-as-a-console-program/ I've