I started a C# project as type "WCF Service Library".
In order to include the WCF service within a GUI application, I added windows Forms within this project (not solution) using the Add button on the project. I then changed the project output type to "Windows Application".
The exe is getting generated in the bin directory however When I click Start in Debug the control is not going to void Main(). But WCF service is getting hosted.
How do I make the control go to main when I click start?
Looks like they both (WCF Service/exe) has to be stated separately (although working fine)
Edit: Reason for having them in a single project is, it is simple for the Service to access data from the Application. Application processes the data and Service send/receives data to the outside world.
In this project, EXE (application) has to be started manually and it works fine. WCF service starts when I click Debug and it works fine.
So the question is, how to start them together?