When debugging, it only builds a project that will be debugged. When you build a solution, it builds all the projects in the solution. There are checks associated with each project, even if nothing is done. These steps in the assembly process, even if no assembly actions are taken, are explained by the fact that it takes more time to build a solution.
If you go to Tools-> Options ... and look under "Projects and Solutions" → "Build and Run", a parameter called the output of the MSBuild project build, which is set to Normal or higher, will be given to give you some idea what actually when you create vs debug. You will need to display the output window and set this to show the output of the assembly in order to view information from this parameter.
You can build the current project by pressing Shift + F6, this should have the same speed.
Charles Lambert
source share