user1191755
user1191755

Reputation: 41

Do not start a Visual Web Developer server for each Web project in a complex solution

I have a huge solution with many web projects and many console projects.

When I set a console project as the default startup project, and then click on "Start debugging" (F5) here is what happens:

  1. There are 7 local web servers that are started (as there are 7 web projects)
  2. The console application is then launched

I'd like to know if there is a way to tell VS2010 not to start the 7 web projects and to run only the console application?

Upvotes: 4

Views: 255

Answers (3)

Marino van der Heijden
Marino van der Heijden

Reputation: 538

In Visual Studio 2010 (and also VS2012) there's an option to only build and start the Startup project(s) with their dependencies. So if your Console Project is your only startup project, VS will only compile and start your console project with the necessary referenced projects.

See: Tools -> Options -> Projects and Solutions -> Build and Run -> Check "Only build startup projects and dependencies on Run".

Upvotes: 0

devio
devio

Reputation: 37225

  1. You can make a web project to "Use Local IIS Web Server" instead of the VS web server

  2. Every web project has a project property "Always Start When Debugging". Set to False, the VS web server will not start the project's web server.

Upvotes: 2

abatishchev
abatishchev

Reputation: 100328

From my experience (in our main solution we have ~10 dlls and 3 web sites) this is not possible,

unless you unload (menu Project -> Unload) this web site projects from the solution.

Upvotes: 1

Related Questions