Visual Studio Development Bookmark and Share   
 index > Visual Studio Setup and Installation > How to block build?
 

How to block build?

Hi there.

I have a big 'solution' that takes a long time to build and, sometimes I just want to browse it in VS while working on another solution (a small one). Now, sometimes I hit F7 by mistake on the big one instead of the small one and then I have to wait a long time for it to build.

How can I setup VS so that it will block the build of the big solution?
Also, is there a way of blocking the edit of files (as if they were read only)?


Thank you very much in advance,
Ricardo Abreu
Gumbers  Thursday, October 11, 2007 1:40 PM

F7 refers to Code View instead of build(F5).

You can goto Tools >> Options... >> Environment >> Keyboard to remove or reassign the ShortCut Key in IDE. (if you want it back, press reset button in the dialog)

F7 defaultly refers to View.ViewCode and F5 refers to Debug.Startall can befound in the listbox of the dialog

Thanks

Figo Fei  Tuesday, October 16, 2007 3:41 AM
Well, thank you and sorry for the late reply (I've been having some problems with my internet connection).

Actually, in my version of Visual Studio F7 does refer to build by default and F5 to start debugging (at least on the c++ environment).

Anyway, that doesn't solve my problem, because I wanted to block the build possibility only for one sollution. For the others, I want to be able to hit the key I'm used to and having them be built.

How I managed to do what I wanted was to create a new "phantom" empty configuration that doesn't build any project of the sollution. Having this configuration be the default when I open the sollution solves my problem because, if I hit F7, it skips all builds.

Nonetheless, thank you again for your attention,
Gumbers
Gumbers  Friday, October 19, 2007 11:35 AM

F7 refers to Code View instead of build(F5).

You can goto Tools >> Options... >> Environment >> Keyboard to remove or reassign the ShortCut Key in IDE. (if you want it back, press reset button in the dialog)

F7 defaultly refers to View.ViewCode and F5 refers to Debug.Startall can befound in the listbox of the dialog

Thanks

Figo Fei  Tuesday, October 16, 2007 3:41 AM
Well, thank you and sorry for the late reply (I've been having some problems with my internet connection).

Actually, in my version of Visual Studio F7 does refer to build by default and F5 to start debugging (at least on the c++ environment).

Anyway, that doesn't solve my problem, because I wanted to block the build possibility only for one sollution. For the others, I want to be able to hit the key I'm used to and having them be built.

How I managed to do what I wanted was to create a new "phantom" empty configuration that doesn't build any project of the sollution. Having this configuration be the default when I open the sollution solves my problem because, if I hit F7, it skips all builds.

Nonetheless, thank you again for your attention,
Gumbers
Gumbers  Friday, October 19, 2007 11:35 AM

Yes, we can set the build action ineach solution configuration.

I took for granted that you're a C# developer, andnever mind.

Thanks

Figo Fei  Monday, October 22, 2007 3:25 AM

You can use google to search for other answers

Custom Search

More Threads

• VB Code language reference
• .NET Framework v1.1 installer not responding
• Problem on Vista 64 with Visual Studio 2008 on exit..
• sql server installation as pre-requsite from visual studio setup...(how to set sa password)
• Publish Option is not visible
• How to read from an external file
• Visual Studio 2008 installation error - ***ERRORLOG EVENT*** : ISetupComponent::Pre/Post/Install() failed in ISetupManager::Inte
• Visual Studio 2008 setup problem
• Using VS 2008 without getting .NET 3.5
• Improving the speed of Visual Studio 2008 Professional Edition