Some useful and not so useful C# .NET utility classes.
- Source Code: GitHub for source, issues, discussions, and CI/CD pipelines.
- Versioned Releases: GitHub Releases for version-tagged source archives and build artifacts.
- NuGet Packages: NuGet Packages for the published
ptr727.Utilitieslibrary.
Version: 4.2:
- Added a .NET 11.0 build of the package beside the .NET 10.0 one. A .NET 11 consumer gets the C# 15 build, and a .NET 10 consumer keeps the build it had. The public API is the same on both.
See Release History for complete release notes and older versions.
# Add the package to your project
dotnet add package ptr727.Utilities// Include the namespace
using ptr727.Utilities;- Report a defect or request a feature on GitHub Issues.
- Ask a question or start a conversation on GitHub Discussions.
- Branching workflow:
- The repo uses a two-branch model with ruleset-enforced merge methods.
- Feature branch ->
developvia squash merge (develop is kept linear). develop->mainvia merge commit (preserves develop's commit list on main as the second parent of each release commit).- Dependabot targets
mainanddevelopin parallel via separate PRs. - See
WORKFLOW.mdfor complete details.
- Code style:
- See
CODESTYLE.mdand.editorconfigfor C# code style rules.
- See
- Local verification:
- See
OPERATIONS.mdfor the clean-compile, test, and lint commands.
- See
- Library design:
- See
ARCHITECTURE.mdfor the project layout and the public-API contracts.
- See
The third-party tools, libraries, and actions this project depends on.
- actionlint: GitHub Actions workflow linter.
- AwesomeAssertions: Assertion library for .NET tests.
- Codecov: Coverage reporting service.
- CodeRabbit: AI code review service.
- CSharpier: C# code formatter.
- cspell: Spell checker.
- Docker: Container build and runtime platform.
- editorconfig-checker: Line-ending and whitespace linter.
- GitHub Actions: CI and automation runner.
- GitHub CLI: Command-line client for GitHub.
- GitHub Copilot: AI coding assistant and code reviewer.
- GitHub Dependabot: Dependency update bot.
- Husky.Net: Git hook manager for .NET.
- markdownlint-cli2: Markdown linter.
- Microsoft.Extensions.Http.Resilience: Resilience pipeline for HttpClient.
- Microsoft.Extensions.Logging.Abstractions: Logging abstractions for .NET.
- Microsoft.Testing.Platform: Test runner and extension host for .NET.
- Nerdbank.GitVersioning: Version computation from git height.
- NuGet Login: GitHub action that exchanges an OIDC token for a short-lived NuGet API key.
- Paths Filter: GitHub action that filters jobs by changed paths.
- Polly: Resilience and transient-fault-handling library for .NET.
- Qodo: AI code review service.
- Serilog: Structured logging library for .NET.
- ShellCheck: Shell script linter.
- shfmt: Shell script formatter.
- uv: Python package and project manager.
- xUnit.Net: Test framework for .NET.
Licensed under the MIT License