OsLibCore 3.7.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package OsLibCore --version 3.7.5
                    
NuGet\Install-Package OsLibCore -Version 3.7.5
                    
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="OsLibCore" Version="3.7.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OsLibCore" Version="3.7.5" />
                    
Directory.Packages.props
<PackageReference Include="OsLibCore" />
                    
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 OsLibCore --version 3.7.5
                    
#r "nuget: OsLibCore, 3.7.5"
                    
#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 OsLibCore@3.7.5
                    
#: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=OsLibCore&version=3.7.5
                    
Install as a Cake Addin
#tool nuget:?package=OsLibCore&version=3.7.5
                    
Install as a Cake Tool

OsLib

Handling of files, paths, temp/backup directories, and system calls.

formerly OsLibCore

3.7.5

  • Documents the current osconfig.json5 contract and lazy Os.Config behavior.
  • Clarifies that UserHomeDir and AppRootDir are intrinsic runtime values, while TempDir and LocalBackupDir are config-driven.
  • Documents the delegate firewall between Os and RaiPath: CloudPathWiring, RaiPath.CloudEvaluator, and buffered RaiPath.Cloud.
  • Documents cloud-aware wait loops by responsibility: RaiPath owns directory waits and RaiFile owns file waits.
  • Removes outdated references to CloudStorageRootDir, provider-precedence helper APIs, typed config wrappers, and observer-specific Os APIs from the current guidance.

namespace

OsLib

classes

<details> <summary>RaiSystem: Run external processes with structured output capture.</summary>

  • RaiSystem: Exec, ExecResult, Start, CreateScript </details>

<details> <summary>Script: Executable script file backed by TextFile and RaiSystem.</summary>

  • Script: create a script file from content, save/update it, and apply Unix executable mode automatically. </details>

<details> <summary>EscapeMode: Defines escape modes for path and parameter handling.</summary>

  • EscapeMode </details>

<details> <summary>OsType: Identifies the OS type.</summary>

  • OsType </details>

<details> <summary>Os: Platform helpers, lazy config access, diagnostics, and path normalization.</summary>

  • Os: UserHomeDir, AppRootDir, TempDir, LocalBackupDir, Config, IsConfigLoaded, ConfigFileFullName, Escape, NormPath, NormSeperator </details>

<details> <summary>CloudPathWiring: Initializes the RaiPath.CloudEvaluator delegate from Os.Config.</summary>

  • CloudPathWiring: Initialize </details>

<details> <summary>RaiPath: Directory path type with buffered cloud classification.</summary>

  • RaiPath: Path, Cloud, CloudEvaluator, / operator, Parent, mkdir, rmdir, EnumerateFiles </details>

<details> <summary>RaiFile: File utility with cloud-aware wait behavior.</summary>

  • RaiFile: Exists, rm, mv, cp, mkdir, rmdir, AwaitVanishing, AwaitMaterializing, Zip, backup </details>

<details> <summary>RaiFileExtensions: Convenience extensions for string and CSV handling.</summary>

  • RaiFileExtensions: MakePolicyCompliant, Singularize, CreateDictionariesFromCsvLines </details>

<details> <summary>TextFile, CsvFile, TmpFile: Text/data-file helpers built on RaiFile.</summary>

  • TextFile: Read, Save, Append, Delete
  • CsvFile: Read, Objects, ToJsonFile
  • TmpFile: create </details>

<details> <summary>CanonicalPath, CanonicalFile, and path conventions: retained compatibility helpers.</summary>

  • CanonicalPath: deprecated legacy type retained for compatibility; prefer direct RaiPath composition.
  • PathConventionType / IPathConventionFile: convention-aware file contracts. </details>

<details> <summary>SshSystem and CLI wrappers: remote shell execution and typed command launchers.</summary>

  • SshSystem: ExecuteRemoteCommand, ExecuteScript, ReadRemoteConfigJson5
  • CliCommand: IsAvailable, TryResolveExecutable, Run, RunAsync, GetInstallCommand, GetUpdateCommand
  • Built-in wrappers: CurlCommand, ZipCommand, SevenZipCommand, RCloneCommand </details>

nuget

https://www.nuget.org/packages/OsLibCore/

diagram

  • Source: RaiFile-Hierarchy.puml
  • CLI render (if PlantUML is installed): plantuml RaiFile-Hierarchy.puml
  • VS Code: open the .puml file and use a PlantUML preview/render extension.

detailed api

  • Foldable class and method-level documentation: API.md
  • Current cloud configuration and buffered cloud-path behavior: CLOUD_STORAGE_DISCOVERY.md
  • Historical path/config/logging design note, now marked with 3.7.5 caveats: PATH_CONFIG_LOGGING_REFACTOR.md
  • CLI command hierarchy and external tool wrappers: ../CliCommand-Hierarchy.puml
  • Local backup placement: Os.LocalBackupDir is optional; when absent, backup features are disabled instead of falling back.
  • Structured logging: OsLib diagnostics use ILogger<T> templates. The current config path falls back to a baseline TempDir model rather than treating missing config as a startup-fatal public API contract.
  • Cloud config guidance: prefer explicit Cloud.* entries in osconfig.json5 when you want stable cloud-backed path classification.
  • Script helper: use RaiSystem.CreateScript(path, name, content) or new Script(path, name, content) when tests or tools need an executable script file.

unit tests

  • Local unit tests are in OsLib.Tests.
  • Run from repository root: dotnet test OsLib/OsLib.Tests/OsLib.Tests.csproj --nologo -v minimal

release notes

nuget publish automation

  • GitHub Actions workflow: .github/workflows/publish-nuget.yml
  • Trigger: push a version tag in format v* (example: v3.7.5)
  • Safety check: workflow validates tag version equals <Version> in OsLib.csproj
  • Required GitHub repository secret: NUGET_API_KEY
  • Typical release command:
    • git tag -a v3.7.5 -m "v3.7.5" && git push origin v3.7.5
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 (3)

Showing the top 3 NuGet packages that depend on OsLibCore:

Package Downloads
JsonPit

Stores json files across servers (synchronized).

RaiImage

Managing image files with meaningful elements in the image name and path.

HDitem.Persist

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.7.6 103 4/16/2026
3.7.5 108 4/14/2026
3.7.2 257 3/29/2026
3.7.1 253 3/29/2026
3.6.1 353 3/27/2026
3.6.0 329 3/27/2026
3.5.5 339 3/27/2026
3.5.4 334 3/27/2026
3.5.3 392 3/27/2026
3.5.2 1,168 3/22/2026
3.5.0 1,156 3/22/2026
3.4.0 1,679 3/18/2026
3.3.0 1,757 3/13/2026
3.2.0 1,792 3/10/2026
3.0.1 1,821 3/4/2026
2.3.1 2,086 2/8/2026
2.3.0 2,066 2/8/2026
2.2.0 4,012 7/23/2022
2.1.4 1,678 6/3/2020
2.1.3 2,003 10/23/2019
Loading failed

3.7.5 patch: RaiPath path handling fix and release metadata alignment.