FastCore.SourceGenerators 0.0.2-beta1

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

FastCore

.NET 10 开发通用框架,完全支持 Native AOT 发布。框架核心目标是让 .NET 开发更简单,更通用,更流行,跑的更快。

功能特性

  • 动态 API — 零配置路由映射,IDynamicApiController 自动生成 RESTful 接口
  • 事件总线 — 进程内内存版 / RabbitMQ / Kafka / NATS 可插拔传输
  • 缓冲写入器 — 写-behind 高频摄取,支持 InMemory / DB 暂存 / Redis Stream / MQ 后端
  • 数据访问 — SqlSugar ORM 适配器(独立包 FastCore.SqlSugar),仓储、分页、种子
  • 对象映射 — 零配置运行时映射 + Mapperly 编译期映射
  • JWT 鉴权 — 双 Token 续期、全局鉴权管线
  • 任务调度 — 轻量 Cron/间隔触发,支持 SqlSugar 落库 + 集群抢锁
  • SignalR 实时通信 — Hub / IRealtimeDispatcher / 连接管理
  • 数据脱敏 — 身份证/手机/邮箱等字段特性化脱敏,按权限放行
  • 请求审计 — 请求级结构化审计日志
  • 多语言本地化?culture / Cookie / Accept-Language 三级切换
  • 雪花 ID 生成器 — 高性能分布式 ID
  • JSON 序列化 — AOT 安全的 System.Text.Json 封装

快速开始

dotnet add package FastCore
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddFastCore();

var app = builder.Build();
app.UseFastCore();
app.Run();

包含的包

包名 说明
FastCore 核心包:动态 API、事件总线、JWT、调度、SignalR 等
FastCore.SqlSugar SqlSugar ORM 数据访问适配器
FastCore.Redis Redis 缓存与流式后端
FastCore.Mq MQ 传输抽象
FastCore.AI AI 智能体
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.2-beta1 78 8/26/2026
0.0.1-beta9 110 8/1/2026
0.0.1-beta8 98 8/1/2026
0.0.1-beta7 108 7/31/2026
0.0.1-beta6 96 7/29/2026
0.0.1-beta5 95 7/28/2026
0.0.1-beta11 86 8/13/2026
0.0.1-beta10 97 8/1/2026
0.0.1-beta1 107 7/26/2026