AStar.Dev.Utilities
1.6.8
dotnet add package AStar.Dev.Utilities --version 1.6.8
NuGet\Install-Package AStar.Dev.Utilities -Version 1.6.8
<PackageReference Include="AStar.Dev.Utilities" Version="1.6.8" />
<PackageVersion Include="AStar.Dev.Utilities" Version="1.6.8" />
<PackageReference Include="AStar.Dev.Utilities" />
paket add AStar.Dev.Utilities --version 1.6.8
#r "nuget: AStar.Dev.Utilities, 1.6.8"
#:package AStar.Dev.Utilities@1.6.8
#addin nuget:?package=AStar.Dev.Utilities&version=1.6.8
#tool nuget:?package=AStar.Dev.Utilities&version=1.6.8
AStar.Dev.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 AStar.Dev.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-mono 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/AStar.Dev.Utilities
# If Directory.Build.props changes aren't being picked up
dotnet clean && dotnet build packages/core/AStar.Dev.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/AStar.Dev.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/AStar.Dev.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 (10)
Showing the top 5 NuGet packages that depend on AStar.Dev.Utilities:
| Package | Downloads |
|---|---|
|
AStar.Dev.Logging.Extensions
This package contains extension methods designed to add Serilog and Application Insights to the project. The logging is opinionated but the configuration can be overridden. In addition, Open Telemetry is being incorporated |
|
|
AStar.Dev.Infrastructure
AStar.Dev.Infrastructure contains the common classes used by the FilesDb etc. packages. |
|
|
AStar.Dev.Infrastructure.FilesDb
Defines the context and models for the FilesDb. |
|
|
AStar.Dev.AspNet.Extensions
A collection of utility methods for simplifying the ASPNet Configuration. |
|
|
AStar.Dev.Api.Usage.Sdk
A package to help consume the API Usage endpoint without duplicating code. |
GitHub repositories
This package is not used by any popular GitHub repositories.
No functional changes. Just a new 'home' on GitHub.