LevelUp.Hosting
0.4.0
dotnet add package LevelUp.Hosting --version 0.4.0
NuGet\Install-Package LevelUp.Hosting -Version 0.4.0
<PackageReference Include="LevelUp.Hosting" Version="0.4.0" />
<PackageVersion Include="LevelUp.Hosting" Version="0.4.0" />
<PackageReference Include="LevelUp.Hosting" />
paket add LevelUp.Hosting --version 0.4.0
#r "nuget: LevelUp.Hosting, 0.4.0"
#:package LevelUp.Hosting@0.4.0
#addin nuget:?package=LevelUp.Hosting&version=0.4.0
#tool nuget:?package=LevelUp.Hosting&version=0.4.0
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-modeIDistributedApplicationEventingSubscriberthat, onAfterResourcesCreatedEvent(skipped in publish mode viaExecutionContext.IsPublishMode), registers each resource tagged withWithOtlpRegistration(...)through anIOnboardingRegistrar. 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-valuedOtlpRegistrationAnnotation(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 | Versions 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. |
-
net10.0
- Aspire.Hosting (>= 13.4.6)
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 |