IVSoftware.Portable.Common 1.0.0-beta

Prefix Reserved
This is a prerelease version of IVSoftware.Portable.Common.
dotnet add package IVSoftware.Portable.Common --version 1.0.0-beta
                    
NuGet\Install-Package IVSoftware.Portable.Common -Version 1.0.0-beta
                    
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="IVSoftware.Portable.Common" Version="1.0.0-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IVSoftware.Portable.Common" Version="1.0.0-beta" />
                    
Directory.Packages.props
<PackageReference Include="IVSoftware.Portable.Common" />
                    
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 IVSoftware.Portable.Common --version 1.0.0-beta
                    
#r "nuget: IVSoftware.Portable.Common, 1.0.0-beta"
                    
#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 IVSoftware.Portable.Common@1.0.0-beta
                    
#: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=IVSoftware.Portable.Common&version=1.0.0-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=IVSoftware.Portable.Common&version=1.0.0-beta&prerelease
                    
Install as a Cake Tool

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 Throw object that includes an ID, message, and Handled flag.
  • 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:

  • CanonicalAttribute
  • CarefulAttribute
  • ProbationaryAttribute
  • ScaffoldingAttribute
  • UnsupportedAttribute
  • IndexerAttribute

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.