Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing Visual Studio from building all projects when debugging one

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: How to Prevent Visual Studio launch WcfSvcHost.exe in Debuggin?

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

like image 615
Mike_G Avatar asked Apr 09 '09 14:04

Mike_G


People also ask

How do I stop a project from building in Visual Studio?

You can hit Ctrl + Break on the keyboard to cancel/stop a build that is currently in progress.

How do I Debug without making Visual Studio?

Please right click solution name and go to Properties -> Configuration Properties -> Configuration , clear the Build checkbox of the project.

How do I Debug multiple projects in Visual Studio?

On the Properties page, select Common Properties > Startup Project. Select Current selection, Single startup project and a project file, or Multiple startup projects. If you select Multiple startup projects, you can change the startup order and action to take for each project: Start, Start without debugging, or None.

Why is Visual Studio rebuilding every time?

The problem Sometimes, Visual Studio will always rebuild projects, even though they have recently been built and there are no changes. If you build , and then run the project will build. If you haven't disabled the “projects out of date”-dialog, it will pop up and ask you to rebuild.


2 Answers

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

like image 167
Darin Dimitrov Avatar answered Sep 21 '22 02:09

Darin Dimitrov


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".

like image 36
Andy Avatar answered Sep 20 '22 02:09

Andy