ptr727.Utilities
4.1.131
dotnet add package ptr727.Utilities --version 4.1.131
NuGet\Install-Package ptr727.Utilities -Version 4.1.131
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ptr727.Utilities" Version="4.1.131" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ptr727.Utilities" Version="4.1.131" />
<PackageReference Include="ptr727.Utilities" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ptr727.Utilities --version 4.1.131
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ptr727.Utilities, 4.1.131"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ptr727.Utilities@4.1.131
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ptr727.Utilities&version=4.1.131
#tool nuget:?package=ptr727.Utilities&version=4.1.131
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Utilities
Some useful and not so useful C# .NET utility classes.
Build and Distribution
- 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.
Build Status
Releases
Release Notes
Version: 4.1:
- Fixed
Download.DownloadFile()andDownloadFileAsync()corrupting the destination when downloading over a longer existing file. The destination is now truncated and rewritten in place, keeping its permissions and any links to it. A download that fails partway leaves a short file rather than a mix of the new content and the old. - Added
StringHistory.SetLimits()to apply both limits in one re-partition, which assigning the two properties in turn cannot do. - Fixed the
StringHistorylimit properties:MaxFirstLinesandMaxLastLinesnow honor a limit assigned after lines have been appended, document zero on one side as retaining no lines on that side rather than as no limit, with both at zero remaining the one unrestricted mode, and reject a negative value withArgumentOutOfRangeException.
See Release History for complete release notes and older versions.
Table of Contents
Installation
# Add the package to your project
dotnet add package ptr727.Utilities
// Include the namespace
using ptr727.Utilities;
Questions or Issues
- Report a defect or request a feature on GitHub Issues.
- Ask a question or start a conversation on GitHub Discussions.
Contributing
- 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
3rd Party Tools
The third-party tools, libraries, and actions this project depends on.
- AwesomeAssertions: Assertion library for .NET tests.
- Codecov: Coverage reporting service.
- CSharpier: C# code formatter.
- cspell: Spell checker.
- editorconfig-checker: Line-ending and whitespace linter.
- GitHub Actions: CI and automation runner.
- 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.Testing.Platform: Test runner and extension host for .NET.
- Nerdbank.GitVersioning: Version computation from git height.
- Polly: Resilience and transient-fault-handling library for .NET.
- Serilog: Structured logging library for .NET.
- xUnit.Net: Test framework for .NET.
License
Licensed under the MIT License
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.Http.Resilience (>= 11.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 11.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.1.131 | 0 | 11/23/2026 |
| 4.1.128 | 101 | 11/20/2026 |
| 4.1.119 | 467 | 11/12/2026 |
| 4.1.112 | 301 | 11/10/2026 |
| 4.1.109 | 199 | 11/9/2026 |
| 4.1.108 | 99 | 11/9/2026 |
| 4.1.105 | 375 | 11/6/2026 |
| 4.1.86 | 1,400 | 10/26/2026 |
| 4.1.68 | 533 | 10/14/2026 |
| 4.1.64 | 175 | 10/13/2026 |
| 4.1.56 | 382 | 10/6/2026 |
| 4.1.25 | 867 | 9/15/2026 |
| 4.1.22 | 195 | 9/14/2026 |
| 4.1.19 | 189 | 9/11/2026 |
| 4.1.16 | 222 | 9/10/2026 |
| 4.1.13 | 203 | 9/9/2026 |
| 4.1.10 | 329 | 9/6/2026 |
| 4.1.6 | 239 | 9/3/2026 |
| 4.1.4 | 270 | 9/1/2026 |
| 4.0.38 | 297 | 8/29/2026 |
Loading failed