3
我希望能寫下面的,但在的MSBuild不能:MSBuild元屬性 - 如何檢索屬性值,其中屬性名稱是其他屬性的組合?
<Target Name="SetDynamicPropertyValues">
<PropertyGroup>
<TargetHost>$($(Target-Environment)-Host)</TargetHost>
</PropertyGroup>
</Target>
這在惡性使用property::get-value function容易。對早期問題的回答顯示approach using the Condition attribute。
有沒有更好的方法來做到這一點?