I have a script fragment as shown below:
<ItemGroup>
<files Include="*.txt"></files>
</ItemGroup>
<Message Text="@(files)">
<ItemGroup>
<files Include="*.xml"></files>
</ItemGroup>
<Message Text="@(files)">
I want the second message to output only * .xml. Currently, both * .txt and * .xml files are printed, which I do not want.
So my question is, how can we overwrite element files in a second print script? Please, help!
source
share