3
我希望能写下面的,但在的MSBuild不能:MSBuild元属性 - 如何检索属性值,其中属性名称是其他属性的组合?
<Target Name="SetDynamicPropertyValues">
<PropertyGroup>
<TargetHost>$($(Target-Environment)-Host)</TargetHost>
</PropertyGroup>
</Target>
这在恶性使用property::get-value function容易。对早期问题的回答显示approach using the Condition attribute。
有没有更好的方法来做到这一点?