dotnet add package TehGM.Utilities --version 0.2.2
NuGet\Install-Package TehGM.Utilities -Version 0.2.2
<PackageReference Include="TehGM.Utilities" Version="0.2.2" />
paket add TehGM.Utilities --version 0.2.2
#r "nuget: TehGM.Utilities, 0.2.2"
// Install TehGM.Utilities as a Cake Addin #addin nuget:?package=TehGM.Utilities&version=0.2.2 // Install TehGM.Utilities as a Cake Tool #tool nuget:?package=TehGM.Utilities&version=0.2.2
TehGM's C# Utility Libraries
This solution contains utility libraries that I created to make features easy to re-use in multiple projects.
Work in Progress
This set of libraries is currently Work in Progress - and it might stay in this state indefinitely.
These libraries are designed primarily for personal use, so I do not guarantee that updates don't include breaking changes.
Keep this in mind if upgrading these libraries for any version before
This NuGet package currently contains following libraries:
- TehGM.Utilities.UniqueIDs - includes types and methods for generating unique IDs.
- TehGM.Utilities.Logging - includes helpers for logging.
- TehGM.Utilities.Randomization - utilities for generating random values.
- TehGM.Utilities.Time - time conversion and formatting utilities.
- TehGM.Utilities.Validation - type and data validation utilities.
- TehGM.Utilities.Threading - threading and async/await utilities.
- TehGM.Utilities.AspNetCore - general ASP.NET Core utilities.
More libraries might be added as needed, when needed (by me)... or when I feel like it.
Some of the libraries might have an additional package, which extends their functionality by adding JSON.NET support (such as converters).
These libraries need to be installed separately. This is because they depend on Newtonsoft.Json package, which might only pollute projects that don't make use of it
- TehGM.Utilities.Time.JsonNet - JSON.NET support for TehGM.Utilities.Time.
- TehGM.Utilities.UniqueIDs.JsonNet - JSON.NET support for TehGM.Utilities.UniqueIDs.
TehGM.Utilities is open source, with code hosted on GitHub.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
- UniqueIDs: Add TypeConverter for Base64Guid.
- UniqueIDs: Implement IParsable and ISpanParsable for Base64Guid (.NET7+).
- Time: Add TypeConverter for UnixTimestamp.
- Time: Implement IParsable and ISpanParsable for UnixTimestamp (.NET7+).
- Randomization: Fix multi-targetting compilation for .NET6+.