Zonit.Extensions.Projects
10.0.0-preview.9
dotnet add package Zonit.Extensions.Projects --version 10.0.0-preview.9
NuGet\Install-Package Zonit.Extensions.Projects -Version 10.0.0-preview.9
<PackageReference Include="Zonit.Extensions.Projects" Version="10.0.0-preview.9" />
<PackageVersion Include="Zonit.Extensions.Projects" Version="10.0.0-preview.9" />
<PackageReference Include="Zonit.Extensions.Projects" />
paket add Zonit.Extensions.Projects --version 10.0.0-preview.9
#r "nuget: Zonit.Extensions.Projects, 10.0.0-preview.9"
#:package Zonit.Extensions.Projects@10.0.0-preview.9
#addin nuget:?package=Zonit.Extensions.Projects&version=10.0.0-preview.9&prerelease
#tool nuget:?package=Zonit.Extensions.Projects&version=10.0.0-preview.9&prerelease
Zonit.Extensions.Projects
Project / catalog context for ASP.NET Core and Blazor. Exposes the user's currently selected project as the Project value object.
dotnet add package Zonit.Extensions.Projects
What you get
ICatalogProvider.Project : Project— current project VO; returnsProject.Emptywhen 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 backendCatalogModel+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 | 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
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.2)
- Zonit.Extensions (>= 10.0.0-preview.9)
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 |