Laching.Core 0.25.3

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

Laching for .NET

Building blocks for little companion apps that live in the tray: the parts every such app needs and nobody wants to write twice. These are the .NET packages of Laching, which is Swift for macOS and iOS, .NET for Windows and Kotlin for Android. The Swift code is the reference; the .NET side replays its conformance vectors, so both behave the same. MIT.

Laching is built for mybackhurts, sunnysays and Mister Pagliacci. It is 0.x, so minor versions may change public types.

No support. Laching is shared as is, for anyone to use, but it is built for these apps: its issues are the owner's own plans, issues and pull requests from others aren't monitored, and releases follow what the apps need.

This README is packed into each package (dotnet/README.md in the repository), so every link in it is absolute.

The packages

All six share one version. Laching.Windows and Laching.Windows.Companion need Windows 11: they target net11.0-windows10.0.22000.0 with TargetPlatformMinVersion 10.0.22000.0, so an app targets that or later. The rest are net11.0 and run anywhere.

dotnet add package Laching.Core
dotnet add package Laching.Companion  # the desk companion layer
dotnet add package Laching.Windows   # Windows 11; the tray, idle and busy services
dotnet add package Laching.Companion.Shell    # a companion app's shell, platform-free
dotnet add package Laching.Windows.Companion  # Windows 11, WinUI 3: that shell on Windows
dotnet add package Laching.Testing   # in test projects: fakes, fixtures, vector replays
Package What it does
Laching.Core Pure logic. ReminderScheduler: an interval timer with active hours and weekdays, quiet hours, an idle reset, a hold while the user is busy with a grace period after, snooze and pause, on an injected clock. A seeded SplitMix64 random source, plurals and settings. Store/: a purchase store for one-time unlockables and tips, with the backend behind an interface so tests use MockStoreBackend, and ReviewLifecycle (when an app may ask for a review, once).
Laching.Companion The pure core of a desk companion: a phrase bank and picker (lines, jokes told in beats, tunes; scoped by skin, flavor and language), chatter cadence, quiet rules and mood, settings, a coordinator that replays a whole day from a seed, desktop presence, skins and character art. It loads the JSON the Swift side writes (PhraseBank.Parse, CharacterArt.Parse).
Laching.Windows The real providers and the tray plumbing. Idle time, call detection without permissions (whether another app is using the camera or the microphone, read from the capability consent store, never by opening a device), full-screen detection, power, output mute, screen lock and appearance. TrayIconHost, AppNotifier<TAction>, StartupService(taskId), LocalSettingsStore, SingleInstance.Claim(key), WavPlayer, the .resw lookup Loc, and AppFeedback for reviews and contact.
Laching.Companion.Shell The platform-free half of a companion app's shell, written against small interfaces so its tests run on any OS: CompanionAppModel<TWindow, TSettings>, the menus as data, speech in beats and recorded voices, the delivery performer, the signal hub, the desktop layout and a screenshot run's sample environment.
Laching.Windows.Companion That shell on Windows, in WinUI 3: the app's Application, the tray status item with its glyph and panel, the windows, the speaker, chime and notifier, the character on the desktop, and the character canvas, speech bubble, status pill, chrome, Settings rows, Support window and screenshot capture.
Laching.Testing Fakes for every interface, fixtures (a phrase bank, defaults, a vector and a raster skin) and the conformance vectors' helpers, for an app's own test projects (no test framework needed: each check returns its problems). Also the shell's fakes (FakeHost, ManualTimers, FakeSpeaker…), for testing an app model without a screen.

The packages ship no strings, product ids or window lists: the app passes them in, as copy records or from its .resw (Loc.Configure("Resources"), Loc.UseLanguage(...) at launch).

A companion app on Windows

On Laching.Windows.Companion a WinUI 3 app is a model, its views and three small files. dotnet/Fixture.App is the whole of one, over the fixture bank, and the repository's README shows its Program.cs and App.

The app keeps its words, its look (a CompanionPalette of ThemedColors), Home, onboarding, the tray panel's layout, its own settings and windows, and the MSIX manifest. Its project imports tools/windows/companion.targets from a laching/ git submodule: x64 and ARM64, Debug unpackaged and every other configuration an MSIX with Native AOT. The tools beside it take screenshots, smoke-test the package and lint the WinUI code that breaks only under Native AOT. Keep the model free of WinUI and its tests run on any OS.

More

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net11.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Laching.Core:

Package Downloads
Laching.Companion

The pure companion layer for desk-companion apps, mirrored from the Swift LachingCompanion: a phrase bank and picker (lines, jokes in beats, tunes; skins, flavors and languages), chatter cadence presets, quiet rules and mood, write-through settings, a coordinator that replays exactly from a seed, desktop presence, skins, and a rig that animates vector or raster character art. No OS or UI dependencies.

Laching.Companion.Shell

The platform-free half of a desk-companion app's shell, the C# twin of the Swift LachingCompanionUI's logic: the app model (the tick, the channels, Shh and wake, the bubble with mute and undo, previews, the status line, the desktop character), the menus as data, speech in parts with recorded voices, the delivery performer, the signal hub, the desktop layout and placement, a screenshot run's sample environment. Written against small interfaces (a host for the tray icon, windows, desktop window and timers; speaker, chime, notifier, signal sources) that Laching.Windows.Companion implements, so it is tested on any OS. No OS or UI dependencies.

Laching.Windows

Windows services for little tray apps: a raw Shell_NotifyIcon tray icon host with a native menu, GetLastInputInfo idle time, call and full-screen detection without opening a device, power source, output mute, appearance and session-lock signals, StartupTask, LocalSettings store, WAV player, app notifications, single instance, .resw lookup, Microsoft Store purchases (StoreContext).

Laching.Testing

Test support for apps built on Laching.Core and Laching.Companion, mirrored from the Swift LachingTesting: mock clock, idle, busy and random sources; conformance helpers (finding the vectors folder, dates, names); the replay bodies that check an app's companion vectors (phrases, settings, picker, cadence, quiet timelines, character poses, desktop) and return their problems; loaders for Laching's fixture bank, defaults and art; fakes for the companion shell (speaker, chime, timers run by hand). No test framework dependency.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.25.3 62 11/27/2026
0.25.0 141 11/14/2026
0.22.0 164 11/11/2026
0.21.0 169 11/2/2026
0.20.9 161 10/25/2026
0.20.5 149 10/24/2026
0.20.2 158 10/24/2026
0.19.22 152 10/24/2026
0.19.14 153 10/20/2026
0.19.11 153 10/20/2026
0.18.0 157 10/18/2026
0.17.1 145 10/18/2026
0.17.0 143 10/18/2026
0.16.0 139 10/17/2026
0.15.0 132 10/17/2026
0.14.0 151 10/17/2026
0.13.1 505 10/17/2026