AspNetCoreDashboard.Abstractions 1.0.0-beta-29

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

AspNetCoreDashboard

面向 NuGet 类库作者的嵌入式 Web UI 宿主 SDK。可在 ASP.NET Core 8/9/10 或 OWIN(.NET Framework 4.8)应用中挂载自包含的 UI + API 模块。

Build Build status MyGet NuGet

.NET 支持策略

宿主 TFM 支持状态
ASP.NET Core net8.0net9.0net10.0 活跃维护 — 大版本发布时对齐当前 LTS / 当前版本
OWIN / .NET Framework net48 活跃维护 — 缺陷修复,与 Abstractions API 对齐
UI 模块编写 netstandard2.0 活跃维护 — 仅引用 Abstractions
System.Web net48 活跃维护 — API 路由与流式静态资源;复杂场景优先 OWIN 或 ASP.NET Core

新版 SDK 大版本与 ASP.NET Core LTS 发布节奏对齐;同一主版本内的补丁发布保持向后兼容。

包说明

TFM 适用场景
AspNetCoreDashboard.Abstractions netstandard2.0 编写 UI 模块
AspNetCoreDashboard net8.0;net9.0;net10.0 ASP.NET Core 宿主
AspNetCoreDashboard.Owin net48 OWIN / .NET Framework 宿主
AspNetCoreDashboard.Generators netstandard2.0 内容命名空间与路径前缀源生成器
AspNetCoreDashboard.Testing net8.0;net9.0;net10.0 集成测试辅助(可选)
AspNetCoreDashboard.Analyzers netstandard2.0 编译期模块检查(可选)
AspNetCoreDashboard.Razor net8.0;net9.0;net10.0 Razor 预览路由(可选)
AspNetCoreDashboard.SystemWeb net48 System.Web HttpModule 适配器

快速开始(ASP.NET Core 8 / 9 / 10)

[UiModule("/MyModule")]
public sealed class MyUiModule : IUiModule
{
    public string PathPrefix => "/MyModule";

    public void Configure(IUiModuleRegistration builder)
    {
        builder.MapEmbeddedUi(typeof(MyUiModule).Assembly, "MyModule.Content")
               .MapFallbackToIndex("MyModule.Content.index.html")
               .MapGet("/api/items/{id}", ctx => ctx.WriteAsync(ctx.GetRouteValue("id")));
    }
}

builder.Services.AddUiModuleHosting(o => o.ApplySecurityHeaders = true);
builder.Services.AddUiModules()
    .AddModule<MyUiModule>(builder.Services)
    .SetAuthorization("/MyModule", new LocalRequestsOnlyAuthorizationFilter());
app.UseUiModules();

使用 dotnet new install ./templates 安装模板后,执行 dotnet new acduimodule -n MyCompany.MyModule 可脚手架生成模块。

快速开始(OWIN / net48)

app.AddUiModules()
   .AddModule<MyUiModule>()
   .SetAuthorization("/MyModule", new LocalRequestsOnlyAuthorizationFilter());
app.UseUiModules();

示例项目

项目 说明
AspNetCoreDashboardLibrarySamples SampleUiModule + DiagnosticsUiModule(netstandard2.0)
AspNetCoreDashboardWebSamples ASP.NET Core 最小宿主(net8/9/10)
AspNetCoreDashboardOwinSamples OWIN 自宿主,端口 1101

运行 Web 示例:

dotnet run --project Samples/AspNetCoreDashboardWebSamples
# 打开 http://localhost:5000/Dashboard/

详见 Samples/README.md

文档

许可证

MIT — 详见 LICENSE

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on AspNetCoreDashboard.Abstractions:

Package Downloads
AspNetCoreDashboard

ASP.NET Core 应用的嵌入式 Web UI 宿主。

AspNetCoreDashboard.Testing

AspNetCoreDashboard UI 模块集成测试辅助库。

AspNetCoreDashboard.Owin

OWIN / .NET Framework 4.8 应用的嵌入式 Web UI 宿主。

AspNetCoreDashboard.Razor

AspNetCoreDashboard 可选 Razor 页面托管扩展(预览)。

AspNetCoreDashboard.SystemWeb

AspNetCoreDashboard 嵌入式 UI 模块的 System.Web HttpModule 适配器。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-beta-29 27 7/14/2026
1.0.0-beta-27 33 7/14/2026
1.0.0-beta-25 41 7/14/2026
1.0.0-beta-21 36 7/14/2026
1.0.0-beta-20 82 7/9/2026