I want to be able to reference an MSBuild (3) property using the contents of another property. For example:
<PropertyGroup>
<SelectVariable>Test</SelectVariable>
<TestVariable>1</TestVariable>
<FullVariable>2</FullVariable>
</PropertyGroup>
<Message Text="Value $($(SelectVariable)Variable)"/>
In this scenario, I want the contents of TestVariable outputted (1). Is this possible?
I don’t believe that is possible. However, you could achieve a similar effect with ItemGroups:
It’s a little clunky tho…