dotnet / dotnet/msbuild

[Feature] Support `Condition` attribute on `Choose` element

Open
#8,032 0 comments 2 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

The only child element that doesn't support `Condition` attribute is `Choose`. Is it on purpose? I find myself, on some occasions, **needing** to add a conditional attribute to the `Choose` element itself.

If I don't have that option, the code kind of becomes error prone and cumbersome.

For Example:

```xml






```

is better, less repetitive and less error prone than the following...

```xml






```

_See for context_

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.