itaskitem

MSBuild ITaskItem RecursiveDir metadata disappears

六月ゝ 毕业季﹏ 提交于 2019-11-30 15:50:25
问题 I have a custom MSBuild task, which processes a set of files and returns a modified subset of this. Basically, I just create a new ITaskItem array out of the input, skipping some items. However, the RecursiveDir metadata disappears when this result set is returned to MSBuild! It is still with the correct values at the end of my custom task's Execute() method but when I then try to use RecursiveDir in MSBuild, I find that it is empty! This is, of course, quite a problem! What should I do? Is

MSBuild ITaskItem RecursiveDir metadata disappears

一个人想着一个人 提交于 2019-11-30 15:33:37
I have a custom MSBuild task, which processes a set of files and returns a modified subset of this. Basically, I just create a new ITaskItem array out of the input, skipping some items. However, the RecursiveDir metadata disappears when this result set is returned to MSBuild! It is still with the correct values at the end of my custom task's Execute() method but when I then try to use RecursiveDir in MSBuild, I find that it is empty! This is, of course, quite a problem! What should I do? Is this normal? The other metadata such as Filename and Extension is still there. Identity also points to