Documentation for Microsoft.Build.Utilities.Task

Hello there;

I'd like to know if there's any documentation available to the MS Build.* assemblies; I'm struggling to find how to access metadata by item for a executing a task with different settings for each asset, as it is done in the ConvertToJpegTask.

Is it possible to have access to the sourcecode of that sample plugin?

Thanks in advance for any hint.

[386 byte] By [Izzz] at [2008-2-19]
# 1

I've found the sample of a MakeDir task here: http://msdn2.microsoft.com/en-us/library/microsoft.build.utilities.task.aspx

I'm still searching how to access metadata by item as done in the ConvertToJpegTask DLL sample.

Izzz at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 2

When you define metadata such as in the ConvertToJpegTask you don't need to program anything specific to make it work. What happens is MSBuild uses batching to divide the data up by metadata and call the task as many times as needed to process that data, for instance if you have something like this...

1.png (Converting at 128x128)
2.png (Converting at 128x128)
3.png (Converting at 256x256)

The ConvertToJpegTask would get called twice, once with the files 1.png and 2.png (With the size data as well) then again for 3.png because it converts differently then the others.

You can read more about batching in MSBuild here: http://msdn2.microsoft.com/en-us/library/ms171473.aspx

Hope this helps!

MichaelKlucher-MSFT at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...
# 3
Thanks!
Izzz at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technolgies: XNA Build...