As a AzureDevops user I want to be able to manually pass different MSBuild constants (via DefineConstants) by turning checkboxes on and off on the "Run Pipeline" UI.
Example:
I achieve that by defining two boolean parameters for the current pipeline:
parameters:
- name: enableDebugErrorMessages
displayName: 'Enable debug error messages'
type: boolean
default: false
- name: enableAnalytics
displayName: 'Enable analytics'
type: boolean
default: true
Now I want to generate a string for MSBuild containing enabled constants. Examples:
/p:DefineConstants="ENABLE_ANALYTICS"
/p:DefineConstants="ENABLE_DEBUG_MESSAGES;ENABLE_ANALYTICS"
so I can pass them for MSBuild this way:
- task: XamariniOS@2
inputs:
args: '<HERE>'
I've tried all possible combination of expressions from the documentation I could think of except I want to do something that is not supported by expressions.
