views:

776

answers:

3

Hi All,

In VS2005 and up, is it possible to specify which configuration should be selected by default?

I have several configurations in my solution but one of them should be used in most cases. Hence I'd like to make sure that devs who pull it out of Source Control use the right solution (unless of course they specifically choose another one).

Ideally, this setting should be in the .sln file since that one is under Source Control.

TIA,

+1  A: 

Hi - I don't know if I understand the complete situation behind your question, but there is a way to "externalize" some of VS.Net's project configuration values such as FxCop settings into a separate file. Then you could have all projects in a solution point to that file. However, I don't think it would allow for your devs to chose their own configuration after doing the "externalization"

If this seems like the right path for you, check out these posts from me in regards to coding standards on how to make similar changes for configuration.

JB Brown
A: 

It would be intresting to know how to do that

abatishchev
+1  A: 

As far as I uderstand, if there is no .suo file, first platform in alphabetic order becomes the default. Configuration, I guess, too.

abatishchev
this is what I experience as well. Which suggests a workaround consisting in renaming the config to make sure it's first in the list.
Serge - appTranslator