LevelUp.Hosting 0.4.0

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

LevelUp.Hosting

AppHost-only living-standards package for the lvlup-sw paved road. Referenced only by Aspire AppHost projects — it depends on Aspire.Hosting and is the complement to LevelUp.ServiceDefaults.* (referenced by services, which must never depend on Aspire.Hosting). A packaged build-time guard fails the build if it is referenced from a non-AppHost project (IsAspireHost != true).

Usage

var builder = DistributedApplication.CreateBuilder(args);

builder.AddLevelUpOnboarding(); // run-mode onboarding fan-out (dev only)

builder.AddProject<Projects.Api>("api")
       .WithOtlpRegistration(team: "acme", tier: "prod"); // tag for onboarding

What it does

  • AddLevelUpOnboarding() registers a run-mode IDistributedApplicationEventingSubscriber that, on AfterResourcesCreatedEvent (skipped in publish mode via ExecutionContext.IsPublishMode), registers each resource tagged with WithOtlpRegistration(...) through an IOnboardingRegistrar. The shipped default registrar logs only — the real observability-gateway + Strategos data-fabric registrar lands in Phase 7. Registration is idempotent across a re-fired event.
  • WithOtlpRegistration(team, tier) tags a resource with a single-valued OtlpRegistrationAnnotation (ResourceAnnotationMutationBehavior.Replace).

Ownership boundary

LevelUp.Hosting.* is AppHost-only and depends on Aspire.Hosting; LevelUp.ServiceDefaults.* is service-side and never depends on Aspire.Hosting. The two families are complementary and never merged — enforced by scripts/verify-package-boundaries.sh (CI) and the packaged IsAspireHost guard.

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.0 234 7/7/2026
0.4.0-preview.1 65 6/26/2026
0.3.5 808 6/26/2026
0.3.4 140 6/24/2026
0.3.3 154 6/23/2026
0.3.2 107 6/23/2026
0.3.1 131 6/22/2026
0.3.0 281 6/21/2026
0.3.0-preview.1 62 6/21/2026
0.2.0 128 6/21/2026