How to pass data to an ITaskItem property of an MSBuild task?

I think you now need to put the files into an itemlist with the name of the property.

– Pure. Krome Mar 24 '09 at 3:00 +1. FWIW, I stick with string for ease of use if there is only ever going to be one file, and use ITaskItem when there may be more than one.

– Si. Mar 24 '09 at 3:01 @Pure Krome: You're right. I've fixed the includes.

– John Saunders Mar 24 '09 at 3:09 Perfect! Thanks heaps gents. – Pure.

Krome Mar 24 '09 at 3:24.

This is actually way easier, just use a string array. When specifying the values, use a single value, a semi-colon separated list (with whitespace if you like), or an ItemGroup (e.g. @(someItemGroup)), MSBuild is smart enough to figure this out for you: MSBuild task source: public string CssFiles { get; set; } public string JavaScriptFiles { get; set; }.

I used to do that but i've now moved to ITaskItem. – Pure. Krome Mar 25 '09 at 3:42.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send