dotnet / dotnet/msbuild

[MSBuild]::MatchesGlob property function

Open
#3,799 0 comments 0 reactions 0 assignees View on GitHub
Area: Language triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 6h
Merged PRs (30d)
139

Description

It might be interesting in some circumstances to know whether a string (property or item identity) would match a glob pattern, something like

```
$([MSBuild]::MatchesGlob( $(P), '**/*.cs' )
```

I envision a signature like

```c#
bool MatchesGlob(string test, string globPattern)
```

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.