views:

109

answers:

1

I have a .NET solution with multiple projects. Once I finish editing a file, my preference would be to only build the project that the file belongs to but not build any of the other projects.

From the menu, the following option does exactly what I want:

Build -> Build [MY PROJECT NAME]

However, I would like to call that action from VS's Command Window as well as bind a keyboard shortcut to it. What exactly is the name of the command?

+3  A: 

The command is Build.BuildOnlyProject Build.BuildSelection

To bind that to a key, click Tools | Customize | Keyboard... then search for it to bind it.

EDIT

Sorry, BuildOnlyProject doesn't seem to work. Build.BuildSelection does though.

Rob Prouse