✅ Output TaskParameter is unrecognized
I'm trying to use
CreateItem
to add metadata to an item using batching, but it says that
Code that throws:
5 Replies
you should not use CreateItem. it is deprecated
you should use ItemDefinitionGroup instead
as an aside, this code seems extremely sus
it's probably not the best or correct way to do what I want
I have a list of items with a
ProjectPath
metadata (that then gets converted to a ProjectReference
), and I want to filter _ResolvedProjectReferencePaths
to only those that exist in my list (so that I can then get the referenced projects' compiled dll file)
I found this (https://stackoverflow.com/questions/42403046/msbuild-itemgroup-intersection) and this (https://learn.microsoft.com/en-us/archive/blogs/msbuild/batching-brainteaser-explained) to get the intersecting items, but I have the issue with CreateItemanyways this didn't work
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.Bump
I decided to just pass the
@(_ResolvedProjectReferencePaths)
to a custom task and then do the filtering I need there