ZStack.Core 10.3.1

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

ZStack快速开发框架

.NET基础库: Nuget Nuget

ASP.NET Core基础库: Nuget

ASP.NET Core组件库:Nuget Nuget Nuget

项目结构

graph TD;
    ZStack.Extensions --> ZStack.Core;
    ZStack.Core --> ZStack.AspNetCore;
    ZStack.AspNetCore --> ZStack.AspNetCore.OpenTelemetry;
    ZStack.AspNetCore --> ZStack.AspNetCore.EventBus;
    ZStack.AspNetCore --> ZStack.AspNetCore.Hangfire;
    ZStack.AspNetCore.Hangfire --> ZStack.AspNetCore.Hangfire.MemoryStorage;
    ZStack.AspNetCore.Hangfire --> ZStack.AspNetCore.Hangfire.Redis;
    ZStack.AspNetCore.Hangfire --> ZStack.AspNetCore.Hangfire.PostgreSql;
    ZStack.AspNetCore --> ZStack.AspNetCore.SqlSugar;
    ZStack.AspNetCore.SqlSugar --> ZStack.SqlSugar;
    ZStack.AspNetCore --> ZStack.AspNetCore.QingTui;
    ZStack.AspNetCore.QingTui --> ZStack.QingTui;
项目 说明
ZStack.Extensions 扩展方法库:字符串、日期、集合、对象等扩展
ZStack.Core 核心库:DI、日志(Serilog)、配置、异常、性能追踪
ZStack.AspNetCore ASP.NET Core基础库:组件系统、规范化结果、OpenAPI
ZStack.AspNetCore.EventBus 事件总线:基于EasyNetQ的消息发布与订阅
ZStack.AspNetCore.Hangfire 任务调度:基于Hangfire的定时任务框架
ZStack.AspNetCore.SqlSugar SqlSugar组件:自动注册与分布式ID生成
ZStack.SqlSugar SqlSugar基础库:多库管理、仓储、分页
ZStack.AspNetCore.QingTui 轻推组件:多应用管理与Token持久化
ZStack.QingTui 轻推基础库:消息、通讯录、JS-SDK
ZStack.AspNetCore.OpenTelemetry 遥测组件:Metrics与Tracing集成

开始使用

控制台程序

  1. 添加NuGet包 ZStack.Extensions

  2. Program.cs

global using Microsoft.Extensions.DependencyInjection;
global using Serilog;
global using ZStack.Core;

var sp = AppHostBuilder.CreateHostBuilder(args).Build().Services;
var logger = sp.GetRequiredService<ILogger<Program>>();
logger.Information("Hello, World!");

ASP.NET Core

  1. 添加NuGet包 ZStack.AspNetCore

  2. Program.cs

var builder = WebApplication.CreateBuilder(args).Inject();
var app = builder.Build();
app.UseZStackInject();
app.Run();
  1. Startup.cs
[AppStartup(Order = 1)]
public class Startup : AppStartup
{
    public void ConfigureServices(IServiceCollection services)
    {
        services.AddControllersWithViews();
    }

    public void Configure(IApplicationBuilder app, IHostEnvironment env)
    {
        app.UseRouting();
        app.UseAuthorization();
    }
}

配置

Configuration/ 目录下放置 JSON/INI/YAML 配置文件,框架会自动加载。环境特定文件(如 app.Development.json)会自动按环境筛选。

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 ZStack.Core:

Package Downloads
ZStack.AspNetCore

ZStack.AspNetCore框架

ZStack.QingTui

ZStack框架 轻推SDK

ZStack.SqlSugar

ZStack框架 SqlSugar插件

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.3.1 123 4/28/2026
10.3.0 131 4/28/2026
10.2.0 194 3/17/2026
10.1.0 206 1/5/2026
10.0.4 307 11/26/2025
10.0.3 384 11/13/2025
10.0.3-rc.2 130 11/9/2025
10.0.1-rc.3 139 11/7/2025
10.0.1-rc.2 184 11/6/2025
10.0.0-rc.2 169 10/28/2025
9.1.13 312 11/7/2025
9.1.12 345 11/6/2025
9.1.10 335 10/24/2025
9.1.9 674 7/21/2025
9.1.8 288 7/18/2025
9.1.7 282 7/18/2025
9.1.6 283 7/18/2025
9.1.5 357 7/9/2025
9.1.4 335 7/9/2025
9.1.3 324 7/8/2025
Loading failed