Dependency Analysis and custom tasks
Hello again;
How would I go to use the CheckDependencyTask in conjunction with a custom Task like Convert2JpegTask?
If Convert2Jpeg was an .exe, the XnaExec would dump dependency informations which could be used by CheckDependencyTask.
Would I need to dump the dependency information from the custom tasks just like XnaExec does?
Is there any helper to do that?
Thanks in advance!
[417 byte] By [
Izzz] at [2008-2-20]
I think I found out: one needs to inherit from Microsoft.Xna.Build.Tasks.XnaToolTask instead of Microsoft.Build.Utilities.Task, and then all the features from Xna Tasks seem to be available.
Edit: still it doesn't seem to watch file access; I suppose this is because I override the .XnaToolTask.Execute method. Some input about this would be much appreciated.
The XnaToolTask is for command line only tools. You can wrap them in a task using XnaToolTask just like you would a ToolTask, see http://msdn2.microsoft.com/en-us/library/ms126394.aspx
Right now the functionality you're looking for isn't part of the CTP release, we're looking at implementing this in the future and I'll make sure the team sees the interest to do so.
Thanks!