How to create a windows service with visual studio 2022(C#)
1. Open Visual Studio 2022 and create a new project by selecting "File" > "New" -> "Project".
2. In the "New Project" dialog, select "Windows service(.NET framework)" under the
"Create a new project" selection. You can give your project a name and select a location to save it.
3. After creating the project, you will see the "designer view". You can add "Installer" to your form by mouse-right clicking and selecting "Add Installer".
4. After selecting "service installer1", you can see the "Properties window".
5. Change "DisplayName" to the service display name in your window service.
6. You can see more, DelaydAutoStart, Description, ServiceName, and StartType.(You can make a better service program by utilizing each of the items.)
댓글
댓글 쓰기