dotnet / dotnet/msbuild

Add built-in First and Last item functions

Open
#4,859 4 comments 5 reactions 0 assignees View on GitHub
Area: Language gathering-feedback triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

Sometimes it's useful to take just the first item on a list, or the last. This is currently very cumbersome, to the point that it's "easier" just [write an inline task](http://blog.seravy.com/msbuild-tasks-first-item-in-an-item-group/) to do so.

A new `First()` and `Last()` item function would simplify things a lot.

Usage example:

```xml






```

Renders:
```
v1.3.0
release
```

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.