Meziantou.Framework.Globbing
1.0.13
Prefix Reserved
dotnet add package Meziantou.Framework.Globbing --version 1.0.13
NuGet\Install-Package Meziantou.Framework.Globbing -Version 1.0.13
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Meziantou.Framework.Globbing" Version="1.0.13" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Meziantou.Framework.Globbing --version 1.0.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Meziantou.Framework.Globbing, 1.0.13"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Meziantou.Framework.Globbing as a Cake Addin
#addin nuget:?package=Meziantou.Framework.Globbing&version=1.0.13
// Install Meziantou.Framework.Globbing as a Cake Tool
#tool nuget:?package=Meziantou.Framework.Globbing&version=1.0.13
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Meziantou.Framework.Globbing
Supported glob features
*
matches any number of characters including none?
matches a single character[abc]
matches one character given in the bracket[!abc]
matches any character not in the brackets[a-z]
matches one character from the range given in the bracket[!a-z]
matches one character not in the range given in the bracket{abc,123}
matches one of the literals**
matches zero or more directories
Usage
Install the NuGet package Meziantou.Framework.Globbing
(NuGet)
<PackageReference Include="Meziantou.Framework.Globbing" Version="1.0.4" />
IsMatch
tests whether a file matches the glob patternGlob glob = Glob.Parse("src/**/*.txt", GlobOptions.IgnoreCase); glob.IsMatch("src/abc.txt");
Enumerate files that match a glob pattern
// Enumerate files that match the glob in the folder rootDirectory Glob glob = Glob.Parse("src/**/*.txt", GlobOptions.None); foreach(var file in glob.EnumerateFiles("rootDirectory")) { Console.WriteLine(file); }
Addition resources
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- Microsoft.IO.Redist (>= 6.0.0)
- System.Memory (>= 4.5.5)
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Meziantou.Framework.Globbing:
Package | Downloads |
---|---|
Meziantou.Framework.DependencyScanning
Find dependencies in source files. Support multiple package managers such as NuGet, npm, Docker, PyPi, and so on |
GitHub repositories
This package is not used by any popular GitHub repositories.