title: Keyboard shortcut for building a specific project in Visual Studio 2015
body: <p>How can I define a shortcut key to build the startup project in my solution?</p>
  
  <p>I often build the default project so it is kind of frustrating to have to use the mouse to scroll to the right project in Solution Explorer, right click it and choose build project. There must be an easier way.</p>
  
  <p>I have looked in to the option "Build.BuildSelection" but this only builds the project that the currently open file is located in. So if I have project A that has a reference to project B and I edit a file in project B, then this shortcut is not usable for me since it is project A I want to build.</p>
  
  <p>With Visual Studio 2010 I could just create a macro to achieve what I want, but I haven't been able to make this work. I looked in to the option of creating a macro for Visual Studio 2015 but I got stuck and never received any answers to my question about this (<a href="https://stackoverflow.com/questions/37944661">JavaScript macro for building the startup project in Visual Studio 2015?</a>).</p>
  
  <p>Building the entire solution is also not an option since some of the projects in the solution are set up to be built in other ways and either fails when Visual Studio tries to build them or just takes very long time to complete.</p>