Building services in Visual Studio

When we’re building WCF services, we often want to debug our code.  Creating a harness to host our service is easy enough but I’ve seen people open two instances of Visual Studio to do this.  One to host and one to debug.  However, that’s not necessary.  The trick is to go to the Solution properties and set the “Multiple start up projects” and select which ones you wish to start.  In my example, I have created a simple WCF service project, a project to contain my service contract, a console app to host the service in for testing and finally a project to actually make the call to my service.  I can tell VS to start both my hosting program and my caller program by making the changes shown below.


Another way you could accomplish the same is to right click on the project you want to start, select debug and then select start new instance.


Happy Coding!!


About JohnHowell

I am a professional software developer with over 20 years of experience. I currently specialize in Microsoft technologies such as VS, TFS, C#, VB.Net, WCF, WPF, WW, etc.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s