![]() |
VOOZH | about |
dotnet add package NeoAdmin.Blazor --version 1.0.34
NuGet\Install-Package NeoAdmin.Blazor -Version 1.0.34
<PackageReference Include="NeoAdmin.Blazor" Version="1.0.34" />
<PackageVersion Include="NeoAdmin.Blazor" Version="1.0.34" />Directory.Packages.props
<PackageReference Include="NeoAdmin.Blazor" />Project file
paket add NeoAdmin.Blazor --version 1.0.34
#r "nuget: NeoAdmin.Blazor, 1.0.34"
#:package NeoAdmin.Blazor@1.0.34
#addin nuget:?package=NeoAdmin.Blazor&version=1.0.34Install as a Cake Addin
#tool nuget:?package=NeoAdmin.Blazor&version=1.0.34Install as a Cake Tool
基于 ASP.NET Core Blazor Server 的后台管理框架核心库:NeoUI 组件、FreeSql CRUD、RBAC、字典/参数、定时任务、审批流、REST API 等。
dotnet add package NeoAdmin.Blazor
在宿主 Program.cs 中:
builder.AddNeoAdminSerilog();
builder.Services.AddNeoUIPrimitives();
builder.Services.AddNeoUIComponents();
builder.Services.AddNeoAdmin(builder.Configuration);
builder.Services.AddNeoAdminApi(Assembly.GetExecutingAssembly());
// ...
app.UseNeoAdminSerilogRequestLogging();
app.UseNeoAdmin();
app.MapRazorComponents<YourApp>()
.AddAdditionalAssemblies(typeof(NeoAdmin.Blazor.Components.LayoutAdmin).Assembly)
.AddInteractiveServerRenderMode();
推荐使用 NeoAdmin.Templates 通过 dotnet new neoadmin 生成完整宿主项目。
NeoAdmin 使用 Blazor Server(InteractiveServer),浏览器与服务器通过 SignalR 长连接通信,底层依赖 WebSocket(路径通常为 /_blazor)。
若前面有 Nginx、Caddy、Traefik、云负载均衡 等反向代理,必须开启 WebSocket 转发,否则会出现页面空白、按钮无响应、频繁「连接已断开」等问题。
Nginx 示例(将 5050 换成实际 upstream 端口):
location / {
proxy_pass http://127.0.0.1:5050;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 3600s;
}
要点:
Upgrade / Connection "upgrade" 缺一不可X-Forwarded-Proto,以便应用识别真实协议更多部署说明见仓库根目录 与宿主 。
Core/)按功能划分的平台能力,避免根目录散落多个小文件夹:
| 路径 | 命名空间 | 职责 |
|---|---|---|
Core/Identity/ |
NeoAdmin.Blazor.Core.Identity |
登录、Token、API 统一返回体 |
Core/Authorization/ |
NeoAdmin.Blazor.Core.Authorization |
REST API 路径权限过滤器 |
Core/Navigation/ |
NeoAdmin.Blazor.Core.Navigation |
菜单树、路径解析、菜单 CRUD |
Core/Workflow/ |
NeoAdmin.Blazor.Core.Workflow |
审批流规则与审批按钮定义 |
Core/Scheduling/ |
NeoAdmin.Blazor.Core.Scheduling |
FreeScheduler 注册与任务同步 |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.34 | 86 | 6/16/2026 |
| 1.0.33 | 83 | 6/16/2026 |
| 1.0.32 | 88 | 6/16/2026 |
| 1.0.31 | 87 | 6/16/2026 |
| 1.0.30 | 97 | 6/15/2026 |
| 1.0.29 | 94 | 6/14/2026 |
| 1.0.28 | 93 | 6/14/2026 |
| 1.0.27 | 108 | 6/13/2026 |
| 1.0.25 | 95 | 6/13/2026 |
| 1.0.24 | 87 | 6/13/2026 |
| 1.0.23 | 99 | 6/13/2026 |
| 1.0.22 | 97 | 6/12/2026 |
| 1.0.21 | 98 | 6/12/2026 |
| 1.0.20 | 96 | 6/10/2026 |
| 1.0.19 | 100 | 6/3/2026 |
| 1.0.18 | 85 | 6/3/2026 |
| 1.0.17 | 91 | 6/3/2026 |
| 1.0.16 | 95 | 6/3/2026 |
| 1.0.15 | 129 | 5/29/2026 |
| 1.0.14 | 112 | 5/29/2026 |