I have a hard time getting any information on how to do this.
I want to include a task in my build pipeline that creates an XML file that lists each file of the resulting artifact along with some metadata like checksum, size, etc.
Something like this:
<files>
<file>
<name>file1.dll</name>
<path></path>
<size></size>
<checksum></checksum>
</file>
<file>
<name>file2.dll</name>
<path></path>
<size></size>
<checksum></checksum>
</file>
</files>
I'm thinking I probably need to use a powershell script but how would I go about getting the list of files? I would have to iterate through the list and populate the xml file with that list.
Or is there some task I use to achieve this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…