IVSoftware.Portable.Common
1.0.0-beta
Prefix Reserved
dotnet add package IVSoftware.Portable.Common --version 1.0.0-beta
NuGet\Install-Package IVSoftware.Portable.Common -Version 1.0.0-beta
<PackageReference Include="IVSoftware.Portable.Common" Version="1.0.0-beta" />
<PackageVersion Include="IVSoftware.Portable.Common" Version="1.0.0-beta" />
<PackageReference Include="IVSoftware.Portable.Common" />
paket add IVSoftware.Portable.Common --version 1.0.0-beta
#r "nuget: IVSoftware.Portable.Common, 1.0.0-beta"
#:package IVSoftware.Portable.Common@1.0.0-beta
#addin nuget:?package=IVSoftware.Portable.Common&version=1.0.0-beta&prerelease
#tool nuget:?package=IVSoftware.Portable.Common&version=1.0.0-beta&prerelease
IVSoftware.Portable.Common GitHub
A small foundational library that provides shared exception-signaling primitives and metadata attributes for the IVSoftware ecosystem.
It supports higher-level packages by supplying a consistent, observable way to surface errors, advisories, and diagnostics without requiring Debug builds.
A core purpose of this package is to let Release-mode NuGet packages expose services similar to System.Diagnostics (e.g., logging, tracing, caller identification, advisory messages) through a controlled signaling channel, without shipping alternate Debug variants.
Exception Signaling Model
All signaling flows through a common Throw event.
This allows end-user developers (EUDs) to log, intercept, suppress, or escalate conditions according to their own policies, even when consuming a Release-mode package.
ThrowOrAdvise
An enum representing the intent of the signal:
- ThrowHard - Standard failure path. Throws unless explicitly suppressed.
- ThrowSoft - Non-fatal condition. Never throws unless escalated.
- ThrowFramework - Framework-side fault, defaulting to throw but downgradeable.
- Advisory - Informational. Never affects control flow.
Supporting enums (ThrowableStatus, ThrowToStringFormat) describe post-raise conditions and how a Throw object formats itself.
ThrowExtensions
Extension methods that raise errors or advisories in a structured, observable way:
ThrowHard<T>()ThrowSoft<T>()ThrowFramework<T>()RethrowHard(...),RethrowSoft(...),RethrowFramework(...)Advisory(...)
Each call:
- Captures the caller identity.
- Wraps the exception in a
Throwobject that includes an ID, message, andHandledflag. - Routes the signal through a static event.
- Honors the caller's choice to suppress or escalate.
- Behaves the same whether running under Debug or Release.
This enables Release-mode diagnostics without relying on Debug.WriteLine availability or a Debug-only NuGet variant.
Advisory
A lightweight subclass of Throw representing informational messages.
Advisories use the same event channel as faults but are always non-throwing and default to diagnostic output if unhandled.
Attributes
The package includes attribute types used across IVSoftware packages:
CanonicalAttributeCarefulAttributeProbationaryAttributeScaffoldingAttributeUnsupportedAttributeIndexerAttribute
These carry intent and documentation value without enforcing runtime behavior.
Purpose
IVSoftware.Portable.Common is intentionally minimal.
Its role is to provide the shared vocabulary needed for consistent behavior across multiple NuGet packages:
- Unified exception and advisory signaling in Release builds,
- Predictable logging and diagnostics without Debug-specific assemblies,
- Lightweight annotations for conveying API intent.
It serves as infrastructure for other IVSoftware packages rather than a framework layer of its own.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on IVSoftware.Portable.Common:
| Package | Downloads |
|---|---|
|
IVSoftware.GlyphProvider.Portable
Portable glyph identity resolver using embedded config.json files shipped alongside custom fonts. Provides ToGlyph extensions, enum prototype generation, and GlyphAttribute for declarative binding. |
|
|
IVSoftware.GlyphProvider.WinForms
Windows-specific font loader and glyph support for IVSoftware’s Portable GlyphProvider. Provides PrivateFontCollection integration, embedded TTF loading, and GDI+ FontFamily materialization. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-beta | 960 | 12/2/2025 |
Initial 1.0.0 release
- Provides foundational exception and advisory signaling for Release-mode packages.
- Includes metadata attributes shared across IVSoftware NuGet packages.