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" />
                    
Directory.Packages.props
<PackageReference Include="ptr727.Utilities" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=ptr727.Utilities&version=4.1.131
                    
Install as a Cake Tool

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.Utilities library.

Build Status

Release Status
Last Commit
Coverage

Releases

GitHub Release
GitHub Pre-Release
NuGet Release

Release Notes

Version: 4.1:

  • Fixed Download.DownloadFile() and DownloadFileAsync() 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 StringHistory limit properties: MaxFirstLines and MaxLastLines now 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 with ArgumentOutOfRangeException.

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

Contributing

  • Branching workflow:
    • The repo uses a two-branch model with ruleset-enforced merge methods.
    • Feature branch → develop via squash merge (develop is kept linear).
    • develop → main via merge commit (preserves develop's commit list on main as the second parent of each release commit).
    • Dependabot targets main and develop in parallel via separate PRs.
    • See WORKFLOW.md for complete details.
  • Code style:
  • Local verification:
    • See OPERATIONS.md for the clean-compile, test, and lint commands.
  • Library design:

3rd Party Tools

The third-party tools, libraries, and actions this project depends on.

License

Licensed under the MIT License
GitHub License

Product 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.

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