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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.