Any way to have Visual Studio prompt before rebuilding, or any other way to make it easier to avoid hitting "Rebuild" instead of "Build"?
I've wasted countless hours when I right click on a project and select "Rebuild" on accident when I meant to click "Build".
This is for a native C++ solution.
Build Solution - compiles code files (dll and exe) that have changed. Rebuild Solution - Deletes all compiled files and Compiles them again regardless of whether or not the code has changed.
Choose Clean All to delete any intermediate and output files. With only the project and component files left, new instances of the intermediate and output files can then be built.
You can hit Ctrl + Break on the keyboard to cancel/stop a build that is currently in progress.
Visual Studio 2010 allows for customization of the menus. You can remove the "Rebuild" item from the Project context menu. Or you may want to just move the "Rebuild" command away from the "Build" command so that you will be less likely to accidentally hit the wrong item.
From VS 2010,
As far as I know, there is no way to enable a confirmation for performing a project or solution rebuild.
Your best option is to move or delete the "Rebuild" menu item on the context menu.
To reset the menu back to the default state, click the "Reset all" button.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With