You should create a solution with two projects, one with the Windows Form app a other with windows service. (Don't add references from one project to another, if you have common code in both projects, extract those common code to a dll project a reference it from the others.)
Compile a VS2012 C# project that contains both windows form and service
-
10-07-2023 - |
Domanda
Visual Studio 2012, C#:
I am developing an application that part of it must be run as service and the other part as windows form. I have created a single project, added windows form and added service, I have also created service Installer and Service Process Installer.
When I compile I just see the exe file that refers to my windows form application.
How I can compile properly a solution that contains both service and windows form application?
I saw a question regarding "Building a solution which contains a windows service and a windows forms project". But that refers to different solutions each contain either windows form application or windows service, this differs than my question.
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow