I have a console application which I need to change to a windows service. How do I do this? In Properties it only has "Windows Application", "Console Application" and "Class Library" in the drop down.
Unfortunately, they are different enough that you need to create a new project of, you guessed it, "Windows Service" type.
You may want to refactor all of the common stuff into a new DLL so you could use it from the Windows Service and the Console Application (as a backup/test).
(Re)Installing Windows Services everytime you need to test is a real hassle, so I advice to keep your console app for testing.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.