Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio: How to build only some projects

My VS solution has many projects. I am currently only working on some of them so I want CTRL+SHIFT+B to only build some. What's the best way to do it?

I thought about creating a new configuration but I would need to check it in and it does not seem right. I don't care if it will be only a "local" setting on my machine.

like image 511
Yaron Naveh Avatar asked Sep 16 '09 15:09

Yaron Naveh


People also ask

How do you exclude a project from a build?

On the menu bar, choose Build > Configuration Manager. In the Project contexts table, locate the project you want to exclude from the build. In the Build column for the project, clear the check box. Choose the Close button, and then rebuild the solution.

What is a build only project?

Build only a startup project, not the whole solution regardless of the current project in the editor. Dependent projects are also built. Shift+F6 builds the current one, but in some cases you always want to build the start one regardless of the current project in the editor.

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.


1 Answers

Right-click on the Solution and choose "Configuration Manager". Un-check the "Build" columns for each one you don't want built.

like image 194
David Avatar answered Sep 22 '22 04:09

David