For my team city configuration, I have a build parameter with a potential preprocessor macro definition. It’s a checkbox with this value: /p:DefineConstants=IncludeFleetSimulation . It has that value so that I can easily add that into my MSBuild parameters, obviously. However, I also want to change the output filename. I don’t want /p:... in the filename. Instead, I want “IFS”. Is there some way to insert something conditionally with the TeamCity parameter parsing? I’m picturing something like this: %IFS% != "" ? "_IFS" : ""% . How do I achieve that in TeamCity?
For my team city configuration, I have a build parameter with a potential preprocessor
Share
I ended up writing a Nant script step to make this happen: