Hello SilverChips ,
Thank you for taking time to post this issue in Microsoft Q&A forum.
Please refer to this document: CreateProperty task and try following codes:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<value1>hello</value1>
<value2>world</value2>
</PropertyGroup>
<Target Name="Build">
<CreateProperty
Value="This work">
<Output
TaskParameter="Value"
PropertyName="$(value1)$(value2)" />
</CreateProperty>
<Message Importance="high" Text="$(helloworld)"></Message>
</Target>
</Project>
- Update1:
After testing more, I may misunderstand your requirements. So if you'd like to use value1
and value2
to output value1 value2
, then you may need to refer to this document: Task writing and write your own task.
Sincerely,
Tianyu
- If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.