Core library holding various extensions to improve code development and readability.
See Docs for details
- Add .net8.0 target
- Add samples; using approach for local nuget package usage
- Add extensions as implicit global usings.
- Project moved to new name: kwld.CoreUtil
For easy use; all extensions are included as global usings (.net 6 +)
By default the standard ImplicitUsings property determines if they are
included or not.
The can also be manually controlled via the ImplicitUsings_CoreUtil build property.
To leverage new language features, this now targets multiple frameworks.
Some features are only available for newer frameworks.
Mapping from static file system methods, such as Path.ChangeExtension() to corresponding FileInfo (and DirectoryInfo) extensions, such as FileInfo.ChangeExtension()
Includes set of extensions for System.IO.Abstractions such as IFileInfo.ChangeExtension()
A number of other file-system goodies like Touch(); EnsureExists()
Simpler Read/Write lines to text stream.
A stream Tee.
String split and join helpers.
Split on whitespace (find words)
Compare case-ignorant, and white-space ignorant (Same).
Dictionary extensions to:
- Add a range, or merge.
- Ensure an item exists (DefaultTo)
A RecordArray for value-equality of a set of records. (with array-like serialization)
A number of msbuild helpers, including:
Download file as part of the build.