Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid accidental rebuild of a project in Visual Studio

I often click on "rebuild" by accident when I actually want to click "build". This rebuild process may take so long time if there are dependencies of this project...

Do you know any plug-in or a configuration that makes visual studio to ask me if I am sure to rebuild this project?

I hope there is a way to handle this situation.

like image 267
ufukgun Avatar asked Sep 14 '09 08:09

ufukgun


People also ask

What is the difference between Build rebuild and clean in Visual Studio?

Clean Solution - deletes all compiled files (all dll's and exe's ). 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.

How do I rebuild a Visual Studio project?

To build or rebuild a single project In Solution Explorer, choose or open the project. On the menu bar, choose Build, and then choose either Build ProjectName or Rebuild ProjectName. Choose Build ProjectName to build only those project components that have changed since the most recent build.

Does rebuild also clean?

Rebuild solution will clean and then build the solution from scratch, ignoring anything it's done before. The difference between this and "Clean, followed by Build" is that Rebuild will clean-then-build each project, one at a time, rather than cleaning all and then building all.


1 Answers

Go to Tools, Customize. Amend the menus and/or toolbars to suit you. For example you might prefer a custom toolbar that contains just the functionality you want without a Rebuild button on it.

Also try bypassing the mouse altogether with the keyboard shortcut for build: Ctrl+Shift+B. There is no default keyboard shortcut for rebuild so there's no chance of activating that accidentally. (Also, the keyboard shortcuts can also be changed by clicking Keyboard at the bottom of the Customize dialog.)

like image 199
Alex Angas Avatar answered Sep 25 '22 13:09

Alex Angas