views:

288

answers:

4

I have a solution with a few different projects in it: a couple dll projects, a console project, and a couple WCF projects.

The console project uses a dll from one of the projects, but I have VS set so that the console project has no dependencies. However, when I debug the console project VS launches, or builds all my projects. This is just a pain since both the WCF projects compile and launch the WCF client or the asp.net dev IIS process. Is there a way to prevent this behavior?

EDIT: I have semi fixed it. To prevent the WCF library from launching, I followed this: http://stackoverflow.com/questions/283145/how-to-prevent-visual-studio-launch-wcfsvchost-exe-in-debuggin

But I still cant stop the asp.net dev server from launching.

+1  A: 

Right click on your solution, then go to Properties, Configuration Properties and select the projects you want to be compiled.

Darin Dimitrov
+2  A: 

I had a similar question that was resolved. The same solution may work for you: link

Jason Irwin
+1  A: 

You might try checking what Visual Studio builds when running a project. Open the Options dialog, and go to Projects and Solutions | Build and Run. Try turning on "Only build startup projects and dependencies on Run".

Andy
A: 

To stop the ASP.Net dev server from launching:

Simply click the web project in the solution explorer and hit F4 to bring up the properties window, and change "Always start when debugging" from "True" to "False". You might need to check all the projects in the solution.

See this thread for more on this.

womp