MSBuild-将属性嵌套在属性内

问题描述

我目前有这样的东西 我想通过结合属性value1和value2的值来显示属性helloworld输出。 我尝试做$(value1$(value2)),但没有任何建议吗?

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <value1>hello</value1>
        <value2>world</value2>
        <helloworld>This works</helloworld>
    </PropertyGroup>
    
    <Target Name="Build">
    <Message Text = "----Message is: $(value1)"></Message>
    <Message Text = "----Message is: $(value1$(value2))"></Message> --->Error :Should display `This works`      
    </Target>
    
</Project>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)