dotnet / dotnet/msbuild

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

Open
#4,460 4 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### 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.
```



```
I'm aware that this [property](https://docs.microsoft.com/en-us/dotnet/api/microsoft.build.evaluation.project.allevaluateditems?view=netframework-4.8#Microsoft_Build_Evaluation_Project_AllEvaluatedItems) 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?

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.