Reputation: 41
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:
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
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
Reputation: 37225
You can make a web project to "Use Local IIS Web Server" instead of the VS web server
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
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