Hello,
I'm using the Custom Build Rules feature in Visual Studio 2005, which allows to use macros such as $(ConfigurationName) in the XML .rules file.
I need to pass only a subset of $(ConfigurationName) as a parameter to my command-line tool:
If my target is named "DebugBuild", I'd like the command to end up like "tool.exe -Debug".
Is there a way to do this? I thought about creating a user-defined macro, but I don't know if they can contain more than plain text. What I have in mind is to end up with something like this in my custom property pages:
Either "Tool Parameter: $(MyMacroWhichExtractsPartOfTheConfigurationName)"
Or "Tool Parameter: ExtractorMethod( $(ConfigurationName) )"
Sorry if this is not very clear, I can give more details if needed :)
Thanks!
Guillaume