dotnet / dotnet/msbuild

How to pass item (ITaskItem) with all metadata into the task?

Open
#5,877 3 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

When you use `%(Item.Identity)` syntax then `MSBuild` creates new item with the same `Identity`. So, all other metadata is lost!

// Metadata is lost








()) {
Log.LogMessage( MessageImportance.High, "Metadata: {0} = {1}", metadata, Item.GetMetadata( metadata ) );
}
]]>



// Metadata is lost

Is there a way to avoid losing metadata?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.