Zonit.Extensions.Projects 10.0.0-preview.9

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

Zonit.Extensions.Projects

Project / catalog context for ASP.NET Core and Blazor. Exposes the user's currently selected project as the Project value object.

NuGet Downloads

dotnet add package Zonit.Extensions.Projects

What you get

  • ICatalogProvider.Project : Project — current project VO; returns Project.Empty when none is selected.
  • ICatalogProvider.Visible : ImmutableArray<Project> — projects visible to the current user (e.g. for cross-project views).
  • ICatalogManager — write surface (Initialize, SwitchProjectAsync(id), holds backend CatalogModel + ProjectModel[]).
  • IUserProjectManager — consumer-implemented backend contract.
  • A Blazor <ZonitProjectsExtension /> for cross-render-mode persistence.

Setup

builder.Services.AddProjectsExtension();
app.UseMiddleware<ProjectsMiddleware>();
@using Zonit.Extensions
<ZonitProjectsExtension />

Reading the project

@inject ICatalogProvider Catalog

@if (Catalog.Project.HasValue)
{
    <h2>@Catalog.Project.Name</h2>
}

@foreach (var p in Catalog.Visible)
{
    <option value="@p.Id">@p.Name</option>
}

Switching project

@inject ICatalogManager Manager

<button @onclick="@(async () => await Manager.SwitchProjectAsync(id))">Open</button>

OnChange fires both on the manager and the provider.

License

MIT.

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 (3)

Showing the top 3 NuGet packages that depend on Zonit.Extensions.Projects:

Package Downloads
Zonit.Extensions.Website

ASP.NET Core and Blazor web extensions providing base components (PageBase, PageEditBase, PageViewBase), navigation services, breadcrumbs management, toast notifications, cookie handling, and data protection utilities for building modern web applications.

Zonit.Services.Dashboard

Package Description

Zonit.Services.Manager

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0-preview.9 46 5/16/2026
10.0.0-preview.6 59 5/15/2026
10.0.0-preview.2 53 5/12/2026
0.1.51 131 1/15/2026
0.1.50 492 11/18/2025
0.1.4 557 1/29/2025
0.1.3 211 6/13/2024
0.1.2 185 6/13/2024
0.1.1 186 6/13/2024
0.1.0 197 6/12/2024