Skip to content

Access AllEvaluatedItems (not just ordered with respect to items of the same item type) from within .csproj #4460

@aodl

Description

@aodl

Feature Enquiry

Is it possible from inside a .csproj file (perhaps using a custom MSBuild task) to access an ordered list of project items that are not just ordered with respect to the same item type? So, in the example below, being able to determine that one dog comes before the cat and another one comes after it.

<ItemGroup>
    <dog Include="bark" />
    <cat Include="meow" />
    <dog Include="woof" />
</ItemGroup>

<!--
@(dog) is only ordered with respect to other dogs :(
!-->

I'm aware that this property appears to provide this behaviour, but I only know how to access this from a VS extension project, not from inside MSBuild. Is this possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions