AStarDev.Utilities
0.2.1
dotnet add package AStarDev.Utilities --version 0.2.1
NuGet\Install-Package AStarDev.Utilities -Version 0.2.1
<PackageReference Include="AStarDev.Utilities" Version="0.2.1" />
<PackageVersion Include="AStarDev.Utilities" Version="0.2.1" />
<PackageReference Include="AStarDev.Utilities" />
paket add AStarDev.Utilities --version 0.2.1
#r "nuget: AStarDev.Utilities, 0.2.1"
#:package AStarDev.Utilities@0.2.1
#addin nuget:?package=AStarDev.Utilities&version=0.2.1
#tool nuget:?package=AStarDev.Utilities&version=0.2.1
AStarDev.Utilities
A collection of general-purpose extension methods and utilities for .NET applications. Designed to make common operations more fluent and readable without pulling in heavier dependencies.
Installation
dotnet add package AStarDev.Utilities
Or via the NuGet Package Manager in Visual Studio / Rider.
Available extensions
| Class | Description | Reference |
|---|---|---|
Constants |
Shared JsonSerializerOptions instances |
docs |
EncryptionExtensions |
AES encrypt / decrypt strings | docs |
EnumExtensions |
Parse a string to an enum value | docs |
LinqExtensions |
ForEach for IEnumerable<T> |
docs |
ObjectExtensions |
Serialize any object to JSON | docs |
RegexExtensions |
Character-class validation helpers | docs |
StringExtensions |
Null checks, JSON round-trip, string manipulation | docs |
Build
This package lives inside the astar-dev-Scraper mono-repo and inherits all build configuration from the root Directory.Build.props.
# From the repo root — builds everything
dotnet build
# Build only this package
dotnet build packages/core/AStarDev.Utilities
# If Directory.Build.props changes aren't being picked up
dotnet clean && dotnet build packages/core/AStarDev.Utilities
Test
Tests for this package live under tests/ at the repo root.
# Run all tests
dotnet test
# Run tests for this package specifically
dotnet test tests/AStarDev.Utilities.Tests
Contributing
- Fork the repo and create a branch:
feat/utilities-<short-description>orfix/utilities-<short-description>. - Follow the Conventional Commits format — e.g.
feat(packages/core/AStarDev.Utilities): add XyzExtensions. - All warnings are treated as errors (
TreatWarningsAsErrors=true), so the build must stay clean. - Add or update the relevant doc file under
docs/if you add a new extension or change an existing one. - Open a PR against
main. CI runs automatically on push.
Do not run dotnet pack or dotnet nuget push manually — releases are triggered by pushing a v* tag. See the repo-level Releasing a new version guide.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
v0.2.0 **Possible breaking change**: The FromJson extension method now defaults to using the Constants.WebDeserialisationSettings when no options are supplied. This ensures consistent deserialisation across the application, but may affect behaviour if you were previously relying on the default JsonSerializerOptions.
v0.1.0 No functional changes. Just a new 'home' on GitHub.