MSBuild conditionals depending on task parameters
- by jalf
In MSBuild it's straightforward to define, say, a PropertyGroup which depends on the value of a property Foo:
<PropertyGroup Conditional="'$(Foo)'=='Bar'" />
Is it also possible for the conditional to depend on a task parameter?
For example, I'd like to use the value of the Link task's SubSystemparameter roughly like this:
<PropertyGroup Conditional="'$(Link/SubSystem)'=='Console'" />
but don't know if it is possible, and if it is, what the correct syntax is.
I'm pretty new to MSBuild though, so it's perfectly possible that I've missed something.