In my client application I sometimes connect to localhost:1242\SomeService.asmx
and some other times it connects to someDomain:1242\SomeService.asmx
. In other words there are times when I want to test locally and some other times remotely.
The default options that VS gives you are debug and release. I want to create custom ones in fact I have just created a new build configuration:
Anyhow how can I know in code if I am using that configuration?
I will like to do something like:
if(Configuration.Type == ConfigTypes.Local)
ConectionString = "localhost:1242:\SomeService.asmx";
else if (Configuration.Type == ConfigTypes.Remote1)
ConectionString = "SomeDomain1:1242:\SomeService.asmx";
else if (Configuration.Type == ConfigTypes.Remote2)
ConectionString = "SomeDifDomain:1242:\SomeService.asmx";
Also release mode tends to be more efficient? How will I specify those settings?