OsLibCore 3.0.1

dotnet add package OsLibCore --version 3.0.1
                    
NuGet\Install-Package OsLibCore -Version 3.0.1
                    
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.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OsLibCore" Version="3.0.1" />
                    
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.0.1
                    
#r "nuget: OsLibCore, 3.0.1"
                    
#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.0.1
                    
#: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.0.1
                    
Install as a Cake Addin
#tool nuget:?package=OsLibCore&version=3.0.1
                    
Install as a Cake Tool

OsLib

Handling of files and system calls.

formerly OsLibCore

3.0.0

  • Adds ImageFile and ImageTreeFile as first-class OsLib types for image-oriented naming and tree-based storage paths.
  • Uses ItemId terminology for image identity in the new image file model.
  • This major version marks an architectural expansion: OsLib now includes structured media path semantics, not only generic OS/file helpers.

namespace

OsLib

classes

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

  • RaiSystem: Exec, Start </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, and cloud storage root discovery.</summary>

  • Os: CloudStorageRoot, HomeDir, TempDir, 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: RaiPath convention where folder name equals file stem.</summary>

  • CanonicalPath: RootPath, FileStem, Apply </details>

<details> <summary>ItemTreePath: RaiPath convention with partition folders from ItemId prefixes.</summary>

  • ItemTreePath: RootPath, ItemId, Topdir, Subdir, Apply </details>

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

  • PathConventionType: CanonicalByName, ItemIdTree
  • 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>ColorInfo: Lightweight image color descriptor.</summary>

  • ColorInfo: Code, Name, Count </details>

<details> <summary>ImageFile: Image-oriented filename parser and composer.</summary>

  • ImageFile: ItemId, NameExt, ImageNumber, TileTemplate, TileNumber, ExtendToFirstExistingFile </details>

<details> <summary>ImageTreeFile: ImageFile with tree-based storage path conventions.</summary>

  • ImageTreeFile: Topdir, Subdir, tree-aware Path </details>

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

  • ShellHelper: Bash </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

unit tests

  • Local unit tests are in OsLib.Tests.
  • Run from repository root: dotnet test
  • Additional integration/usage tests still exist across JsonPitSolution.

nuget publish automation

  • GitHub Actions workflow: .github/workflows/publish-nuget.yml
  • Trigger: push a version tag in format v* (example: v3.0.0)
  • 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.0.0 -m "v3.0.0" && git push origin v3.0.0
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.0.1 51 3/4/2026
2.3.1 349 2/8/2026
2.3.0 331 2/8/2026
2.2.0 2,279 7/23/2022
2.1.4 1,505 6/3/2020
2.1.3 1,829 10/23/2019
2.1.2 2,284 10/23/2019
2.1.1 1,449 10/23/2019
2.1.0 1,903 10/22/2019
1.0.0 2,216 3/15/2019

Major architecture milestone: adds ImageFile/ImageTreeFile and image-focused file model classes for structured media storage. Uses ItemId terminology for image identity.