OsLibCore 3.5.3

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

OsLib

Handling of files and system calls.

formerly OsLibCore

3.5.3

  • Advances the OsLib documentation line to 3.5.3 for the current docs-only patch.
  • Documents the supported cloud-backed provider claim as OneDrive, GoogleDrive, and Dropbox.
  • Keeps osconfig.json and defaultCloudOrder as the shared machine-local contract used across the RAIkeep package stack.
  • Separates intrinsic OS/runtime directories from config-driven directories: UserHomeDir and AppRootDir are intrinsic, while TempDir, LocalBackupDir, and CloudStorageRootDir are resolved through config plus safe fallbacks.
  • Moves *Dir properties to RaiPath return values to encourage RaiPath and RaiFile composition instead of Path.Combine call-site sprawl.
  • Treats missing or invalid osconfig.json as a startup-critical degraded-mode condition with structured logging plus explicit console startup diagnostics.
  • Aligns OsLib documentation with JsonPit's Id-based identifier contract and legacy Name normalization policy.
  • Refreshes the packaged NuGet icon asset to a square 128x128 PNG.
  • Documents CanonicalPath as deprecated legacy API surface; prefer direct RaiPath composition.

namespace

OsLib

classes

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

  • RaiSystem: Exec, 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>RaiNetDrive: Windows network drive mount helper.</summary>

  • RaiNetDrive: Mount, Unmount </details>

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

  • EscapeMode </details>

<details> <summary>OsType: Identifies the OS type (UNIX or Windows).</summary>

  • OsType </details>

<details> <summary>Os: Platform helpers for paths, escaping, provider-based cloud storage discovery, and local backup placement.</summary>

  • Os: UserHomeDir, AppRootDir, TempDir, LocalBackupDir, CloudStorageRootDir, GetCloudStorageRoots, GetCloudStorageRoot, GetCloudStorageRootDir, GetPreferredCloudStorageRoot, GetPreferredCloudStorageRootDir, ResetCloudStorageCache, GetCloudDiscoveryReport, Escape, NormSeperator </details>

<details> <summary>RaiFile: File and directory utility with path parsing and cloud-aware behaviors.</summary>

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

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

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

<details> <summary>RaiPath: Represents a directory path and enforces a trailing directory separator.</summary>

  • RaiPath: Path, / operator, mkdir </details>

<details> <summary>CanonicalPath: deprecated legacy RaiPath convention where folder name equals file stem.</summary>

  • CanonicalPath: RootPath, FileStem, Apply
  • Status: deprecated legacy type retained for compatibility; prefer direct RaiPath composition. </details>

<details> <summary>PathConventionType and IPathConventionFile: Shared path-convention contract for convention-aware files.</summary>

  • PathConventionType: CanonicalByName, ItemIdTree3x3, ItemIdTree8x2
  • IPathConventionFile: ConventionName, ApplyPathConvention </details>

<details> <summary>TextFile: Text file with cached line operations and save support.</summary>

  • TextFile: Read, Save, Append, Delete </details>

<details> <summary>CsvFile: Tab-delimited CSV reader with object conversion.</summary>

  • CsvFile: Read, Objects, ToJsonFile </details>

<details> <summary>TmpFile: Temporary file wrapper.</summary>

  • TmpFile: create (creates missing parent directories via TextFile.Save/RaiFile.mkdir) </details>

<details> <summary>CanonicalFile: Enforces canonical file-in-folder convention.</summary>

  • CanonicalFile </details>

<details> <summary>ShellHelper: Helpers for running shell commands.</summary>

  • ShellHelper: Bash </details>

<details> <summary>CliCommand and tool wrappers: executable discovery, install hints, and process execution.</summary>

  • 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
  • Cloud root discovery setup, provider precedence, and cloud-aware IO behavior: CLOUD_STORAGE_DISCOVERY.md
  • Path/config/logging design note for the 2026 housekeeping pass: PATH_CONFIG_LOGGING_REFACTOR.md
  • CLI command hierarchy and external tool wrappers: ../CliCommand-Hierarchy.puml
  • Local backup placement: Os.LocalBackupDir resolves an OS-local, non-cloud directory as RaiPath and can be configured in osconfig.json.
  • Structured logging: OsLib diagnostics use ILogger<T> templates; only startup-critical configuration failures emit console diagnostics.
  • Ubuntu/Mzansi guidance: prefer explicit cloud.* entries in osconfig.json over probe-only discovery for stable Google Drive roots across machines.
  • 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
  • Additional integration/usage tests still exist across JsonPitSolution.

release notes

nuget publish automation

  • GitHub Actions workflow: .github/workflows/publish-nuget.yml
  • Trigger: push a version tag in format v* (example: v3.5.3)
  • 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.5.3 -m "v3.5.3" && git push origin v3.5.3
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.2 237 3/29/2026
3.7.1 238 3/29/2026
3.6.1 340 3/27/2026
3.6.0 317 3/27/2026
3.5.5 325 3/27/2026
3.5.4 322 3/27/2026
3.5.3 376 3/27/2026
3.5.2 1,154 3/22/2026
3.5.0 1,141 3/22/2026
3.4.0 1,666 3/18/2026
3.3.0 1,745 3/13/2026
3.2.0 1,779 3/10/2026
3.0.1 1,810 3/4/2026
2.3.1 2,075 2/8/2026
2.3.0 2,053 2/8/2026
2.2.0 4,004 7/23/2022
2.1.4 1,677 6/3/2020
2.1.3 2,001 10/23/2019
2.1.2 2,455 10/23/2019
2.1.1 1,622 10/23/2019
Loading failed

3.5.3 simplifies CanonicalFile and deprecates CanonicalPath, improving functionality and clarity in path conventions.