jump to navigation

How to setup multiple startup projects in Visual Studio ? August 11, 2010

Posted by Abhijit Jana in General, My Articles, Visual Studio, Visual Studio 2010.
Tags: , , , ,
trackback

In this blog post I am going to describe a small tips of visual studio where you will get to know how you can  launch multiple project at same time. This is quite useful when you are working on a solution which having multiple project type and you want to run few of  them in same time.

Let’s assume you have a frontend application which developed using WPF and in the backend you are calling a WCF Service. Now to test the application you need both of them on running stage. By default Visual Studio project Setup type sets to “Single Startup Project” . If you set any of the project as "Start up” then that project will start when you run the application.  So after that you need to run the second project also. Below is the Project setup window where you can find the all the setting related with project start up. You can open that window by right clicking on Solution” > “Properties” > “Common Properties” > Startup Project”

8-11-2010 2-33-47 AM

Now, if you look into the above picture you will find we have three options for project setup.

1. Current Selection : This selection will automatically select the project as startup when ever you will click on the project.

Current Selection

2. Single Startup Project : This is the default setup for Visual Studio where first created project will be set as startup, if you want to change the startup project, just right click on the project and select “Set as Startup Project” or Open the properties windows and select the project from the dropdown window of “Single startup project” as shown in below picture.

single1 single2

3. Multiple Startup Project: For above two option you can run only one project at a time. So if you want to run multiple application same time  you can change the setting from Multiple project setup section. Using multiple startup project setting you can set the multiple startup project from the “Action Tab”.

Multiple1

So if you set both of the project action “Start” and run the application both of this project will run. So you do not need to rework to start the different project again.

I hope  this post will help you and save your time from next time :)

Thanks !

AJ

Shout it

Comments»

1. DotNetShoutout - August 11, 2010

How to setup multiple startup projects in Visual Studio ? « Abhijit’s World of .NET…

Thank you for submitting this cool story – Trackback from DotNetShoutout…

2. Atul - August 11, 2010

thanks abhijit for sharing this tip

Abhijit Jana - August 11, 2010

Thanks Atul!!!

3. Abhishek Sur - August 11, 2010

Cool my friend.

Cheers

Abhijit Jana - August 11, 2010

Thanks Abhishek !!!

4. .NET Links of the Week #32 - August 17, 2010

[...] How to setup multiple startup projects in Visual Studio ?Really helpfull if you know it… [...]

5. Weekly Archives 14th Aug 2010 – 28th Aug 2010 « Abhijit's World of .NET - August 28, 2010

[...] How to setup multiple startup projects in Visual Studio ? [...]

6. Different Version of Integrated Web Server in Visual Studio 2010 « Abhijit's World of .NET - October 3, 2010

[...] Solution and Go To Properties and select the option for multiple startup project. You can read my How to setup multiple startup projects in Visual Studio ?  blog post more [...]

7. Run “IIS Express” and “Cassini” simultaneously in Visual Studio 2010 SP1 « Abhijit's World of .NET - June 12, 2011

[...] Now, if you want to run both project. Well, you might be thinking how you can run multiple project at same time, yes you can do it in Visual Studio.  You can setup multiple project as startup from solution settings. You can read one of my blog post on that  How to setup multiple startup projects in Visual Studio ? [...]

8. Run “IIS Express” and “Cassini” simultaneously in Visual Studio 2010 SP1 - Abhijit's Blog - June 13, 2011

[...] Now, if you want to run both project. Well, you might be thinking how you can run multiple project at same time, yes you can do it in Visual Studio.  You can setup multiple project as startup from solution settings. You can read one of my blog post on that  How to setup multiple startup projects in Visual Studio ? [...]


Leave a Reply

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

Gravatar
WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 1,134 other followers