I want to add a web.config transform to be used in an automatic build/deploy cycle via MSBuild. However when I use Visual Studio to add the transformations I only get Debug and Release and have no option to choose the transforms. As far as I understand I need to add a new configuration profile but I really don't need it for anything else. Do I have to do this or there is some other way to use the transformations (especially with build tasks)?
I am also worried that if I add a new profile I may break code that checks for debug configurations:
#if DEBUG
Is this constant defined in the configuration profile somewhere or it is the profile itself?
Basically my question is how to add config transforms that are not debug/release for automatic builds?