Visual Studio: how to build only some projects
My VS solution has many projects. I'm currently working on only a few of them, so I only want CTRL + SHIFT + B to create a few of them. What's the best way to do this?
I was thinking about creating a new config, but I would need to test it and it seems to be wrong. I don't care if this is just a "local" setting on my machine.
Creating a new config would be the best way to do this.
Alternatively, create a second solution file and add only the projects that interest you. We did this for several of our enterprise products, where a complete solution would download dozens of projects. The main reason we did this is to reduce the resources that VS uses. Name the solution something like "My Product - Minimum Build". You have the option to check it or not.
Right click on Solution and select Configuration Manager. Uncheck the Create columns for each one you do not want to create.
Go to solution explorer ( CTRL+SHIFT+L
for me), mark the projects you want to build, right-click them ( SHIFT+F10
if you are a keyboard fan) and select Build Selection
Look in explorer - right click on projects you don't want to build and unload.
Just right click on the project you want to build in Solution Explorer and select Build. It will only create this project (including referenced projects).