How do you only build a file's project using Visual Studio's Command Window?

a 夏天 提交于 2020-01-15 03:24:09

问题


Ctrl-Shift-B, by default, builds an entire solution. An entire solution may contain many projects. Compiling all at the same time may be very slow, especially when development is only occurring on a single project.

I have tried t remap Ctrl-Shift-B to Build.BuildOnlyProject, but it does not work. Nothing happens.

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

Build -> Build [MY PROJECT NAME]

回答1:


The command is Build.BuildSelection

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

Note: Build.BuildOnlyProject does not work all the way through VS2010, at least.



来源:https://stackoverflow.com/questions/345604/how-do-you-only-build-a-files-project-using-visual-studios-command-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!