dotnet / dotnet/msbuild

Syntactic sugar for importing files if they exist

Open
#822 4 comments 6 reactions 0 assignees View on GitHub
Area: Language Feature - Project File Cleanup needs-design triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 13h
Merged PRs (30d)
133

Description

A common pattern in MSBuild is to import targets files only if they exist.

``` xml

```

It could be made more readable by adding explicit support for this pattern via a `ImportIfExists` element, which would make intent clearer and reduce duplication:

``` xml
`
```

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.