In C# wpf I have three different projects:
If I launch the designer (1) there are no problems for it is launched alone.
Instead if I launch the Executor Client (2) I always have to launch the Executor server (3). I am aware that I could use the multiple projects launch but I find it much more convenient both for debug and for release to follow this procedure:
Now my question is: since I launch it not with usual right click-debug launch with multiple project but with single project (on the first project) and from inside it I launch the second project Will there be any problems in debugging? I mean breakpoints, JIT and everything else? Is this safe and good practice?
Thanks for helping
Patrick
The simplest approach when you have a services project and front end project in one solution is usually to set multiple startup projects.
When you hit f5 this then starts up not just your one front end project but any others you also choose. All from the one instance of visual studio.
The debugger is then attached to all the projects and you can seamlessly debug between front end and service code.
The way you do that is:
https://learn.microsoft.com/en-us/visualstudio/ide/how-to-set-multiple-startup-projects?view=vs-2019
To set multiple startup projects In Solution Explorer, select the solution (the top node).
Choose the solution node's context (right-click) menu and then choose Properties. The Solution Property Pages dialog box appears.
Expand the Common Properties node, and choose Startup Project.
Choose the Multiple Startup Projects option and set the appropriate actions.
When you do that you will see a list of your projects with comoboboxes. You use the combo boxes to set the ones you wish to run.
Aside from the convenience, you then avoid the overhead inherent in running multiple instances of visual studio.