OsLibCore 3.7.5
See the version list below for details.
dotnet add package OsLibCore --version 3.7.5
NuGet\Install-Package OsLibCore -Version 3.7.5
<PackageReference Include="OsLibCore" Version="3.7.5" />
<PackageVersion Include="OsLibCore" Version="3.7.5" />
<PackageReference Include="OsLibCore" />
paket add OsLibCore --version 3.7.5
#r "nuget: OsLibCore, 3.7.5"
#:package OsLibCore@3.7.5
#addin nuget:?package=OsLibCore&version=3.7.5
#tool nuget:?package=OsLibCore&version=3.7.5
OsLib
Handling of files, paths, temp/backup directories, and system calls.
formerly OsLibCore
3.7.5
- Documents the current
osconfig.json5contract and lazyOs.Configbehavior. - Clarifies that
UserHomeDirandAppRootDirare intrinsic runtime values, whileTempDirandLocalBackupDirare config-driven. - Documents the delegate firewall between
OsandRaiPath:CloudPathWiring,RaiPath.CloudEvaluator, and bufferedRaiPath.Cloud. - Documents cloud-aware wait loops by responsibility:
RaiPathowns directory waits andRaiFileowns file waits. - Removes outdated references to
CloudStorageRootDir, provider-precedence helper APIs, typed config wrappers, and observer-specificOsAPIs 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
RaiPathcomposition. - 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
.pumlfile 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.LocalBackupDiris 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 baselineTempDirmodel rather than treating missing config as a startup-fatal public API contract. - Cloud config guidance: prefer explicit
Cloud.*entries inosconfig.json5when you want stable cloud-backed path classification. - Script helper: use
RaiSystem.CreateScript(path, name, content)ornew 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
- Current release notes: RELEASE_NOTES_3.7.5.md
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>inOsLib.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 | Versions 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. |
-
net10.0
- Microsoft.Extensions.Logging (>= 8.0.1)
- Newtonsoft.Json (>= 13.0.4)
- RunProcessAsTask (>= 1.2.4)
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 |
3.7.5 patch: RaiPath path handling fix and release metadata alignment.