Syntactic Sugar for Default Properties
Open
Area: Language
Feature - Project File Cleanup
triaged
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
A common pattern in MSBuild is to set a property only if it does not already have a value.
``` xml
A
B
```
Adding explicit syntactic sugar to support this pattern would dramatically improve readability.
This could be done with a DefaultProperties element that automatically treated the properties as if they had the condition checking for the empty value:
``` xml
A
B
```
Combined with #820 this would simplify even further to
``` xml
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.