OsLibCore 3.2.0

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

OsLib

Handling of files and system calls.

formerly OsLibCore

3.0.0

  • Strengthens generic path-convention contracts and canonical file organization support.
  • Keeps OsLib focused on reusable OS/file foundations for public package consumers.

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, GetCloudStorageRoots, GetPreferredCloudStorageRoot, GetCloudDiscoveryReport, 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>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>

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

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.2.0 66 3/10/2026
3.0.1 139 3/4/2026
2.3.1 406 2/8/2026
2.3.0 387 2/8/2026
2.2.0 2,333 7/23/2022
2.1.4 1,560 6/3/2020
2.1.3 1,884 10/23/2019
2.1.2 2,338 10/23/2019
2.1.1 1,504 10/23/2019
2.1.0 1,957 10/22/2019
1.0.0 2,271 3/15/2019

Refocused OsLib on generic OS/file foundations and shared path-convention contracts.