AtomUI.Foundation 1.0.3

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package AtomUI.Foundation --version 1.0.3
                    
NuGet\Install-Package AtomUI.Foundation -Version 1.0.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="AtomUI.Foundation" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AtomUI.Foundation" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="AtomUI.Foundation" />
                    
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 AtomUI.Foundation --version 1.0.3
                    
#r "nuget: AtomUI.Foundation, 1.0.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 AtomUI.Foundation@1.0.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=AtomUI.Foundation&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=AtomUI.Foundation&version=1.0.3
                    
Install as a Cake Tool

AtomUI.Foundation

License: LGPL-3.0

Documentation Language: English | 简体中文

Overview

AtomUI.Foundation is the foundational infrastructure repository for the AtomUI ecosystem. It provides shared runtime primitives and source-generation support that other AtomUI packages can build on without depending on a specific control library.

The first release focuses on modularity:

  • AtomUI.Foundation contains module identifiers, module descriptors, dependency graph resolution, lifecycle hosting and module service registration primitives.
  • AtomUI.Foundation.Generator contains Roslyn source generators and diagnostics for module catalog generation.

Packages

Package Description
AtomUI.Foundation Core runtime infrastructure for AtomUI.
AtomUI.Foundation.Generator Roslyn source generators for AtomUI.Foundation.

Current release:

dotnet add package AtomUI.Foundation --version 1.0.3

If your project needs generated module catalogs, reference the generator as an analyzer:

<PackageReference Include="AtomUI.Foundation.Generator" Version="1.0.3" PrivateAssets="all" />

Modularity

Mark module classes with ModuleAttribute and derive from ModuleBase:

using AtomUI.Modularity;

[Module(DisplayName = "Core")]
public sealed partial class CoreModule : ModuleBase
{
}

[Module(DisplayName = "Selection", Dependencies = [typeof(CoreModule)])]
public sealed partial class SelectionModule : ModuleBase
{
}

The module catalog generator emits an internal ModuleGeneratedCatalog type with a CreateRegistrations() method:

using AtomUI.Modularity;

var registrations = ModuleGeneratedCatalog.CreateRegistrations();
var options = new ModuleHostOptionsBuilder().Enable<SelectionModule>().Build();
var host = new ModuleHost(registrations, options);
var result = await host.InitializeAsync();

Registration does not enable a module. Enabling SelectionModule also selects its required CoreModule; an empty enable-root set runs no modules.

The 1.0.2 Generator package forwards custom catalog settings automatically for PackageReference consumers. Source ProjectReference consumers outside this repository should import the generator's shared props file and expose the settings to the compiler:

<PropertyGroup>
    <AtomUIModularityCatalogNamespace>MyApp.Generated</AtomUIModularityCatalogNamespace>
    <AtomUIModularityCatalogTypeName>MyModuleCatalog</AtomUIModularityCatalogTypeName>
</PropertyGroup>
<ItemGroup>
    <CompilerVisibleProperty Include="AtomUIModularityCatalogNamespace" />
    <CompilerVisibleProperty Include="AtomUIModularityCatalogTypeName" />
</ItemGroup>

Architecture Contracts

The architecture overview indexes the canonical designs for the module host, service registration, managed lifetimes, and source generation.

Version 1.0.2 preserves neutral descriptors and caller-owned instances while adding an opt-in managed service runtime with typed factories, owner-backed leases, scope sharing, and coordinated retirement. Managed behavior is enabled through ModuleServiceRuntime; existing descriptor registration does not activate a container or transfer ownership. See verification contracts for the tested scope and remaining cross-platform/product qualifications.

Version 1.0.3 adds transactional module reconfiguration and joint domain publication. After all Stop notifications, domain cleanup and module reader drain progress together; managed service release still waits for module callbacks. Actual LuminEditor Core integration remains a separate qualification. See module reconfiguration.

Local Development

Build the full solution:

dotnet build AtomUI.Foundation.slnx

Run runtime tests:

dotnet test tests/AtomUI.Foundation.Tests/AtomUI.Foundation.Tests.csproj --framework net10.0

Run generator tests:

dotnet test tests/AtomUI.Foundation.Generator.Tests/AtomUI.Foundation.Generator.Tests.csproj --framework net10.0

Publish packages to a local NuGet source:

pwsh -File scripts/PublishToLocalSources.ps1
pwsh -File scripts/PublishToLocalSources.ps1 -localSourcesDir /path/to/nuget.local -buildType Release

Repository Layout

Path Purpose
src/AtomUI.Foundation Runtime package source.
src/AtomUI.Foundation.Generator Roslyn generator package source.
tests/AtomUI.Foundation.Tests Runtime tests.
tests/AtomUI.Foundation.Generator.Tests Generator tests.
build/ Centralized MSBuild versioning, package metadata and output configuration.
docs/ Architecture and engineering documentation.
scripts/ Local development and publishing scripts.

License

AtomUI.Foundation uses the same license as AtomUI: GNU Lesser General Public License v3.0. See LICENSE.

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 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.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AtomUI.Foundation:

Package Downloads
AtomUI.MachGrid

Commercial high-performance DataGrid controls for AtomUI desktop applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 338 11/6/2026
1.0.3 110 11/3/2026
1.0.2 302 10/26/2026
1.0.1 117 10/19/2026
1.0.0 668 8/9/2026