dotnet / dotnet/msbuild

Choose/When/Otherwise in Targets

Open
#2,056 7 comments 19 reactions 0 assignees View on GitHub
Area: Language For consideration triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

``/``/`` is a nice feature that allows replacing complex conditions with what is effectively a switch-case-default but can only be used on the project level and not within targets.

Can this be changed to work within targets?
This would theoretically conflict with tasks being named `Choose`, are there any ways to deal with this? - like (and I feel bad suggesting this) optional xml namespace for `` and prefer a task named `Choose` if defined.

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.