Dkowald / kwld.CoreUtil

Various extensions to ease .NET Core development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Core library holding various extensions to improve code development and readability.

See Docs for details

Whats New

  • 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

Features

Global Usings

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.

Framework support

To leverage new language features, this now targets multiple frameworks.
Some features are only available for newer frameworks.

Helpers for file system.

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()

Stream helpers

Simpler Read/Write lines to text stream.

A stream Tee.

String helpers

String split and join helpers.

Split on whitespace (find words)

Compare case-ignorant, and white-space ignorant (Same).

Collections.

Dictionary extensions to:

  1. Add a range, or merge.
  2. Ensure an item exists (DefaultTo)

A RecordArray for value-equality of a set of records. (with array-like serialization)

Build tooling.

A number of msbuild helpers, including:

Download file as part of the build.


^ source | nuget

About

Various extensions to ease .NET Core development

License:MIT License


Languages

Language:C# 99.4%Language:PowerShell 0.6%