Zongsoft.Core 7.36.1

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

Zongsoft 开发框架核心类库

License NuGet Version NuGet Downloads GitHub Stars

English | 简体中文


概述

Zongsoft.CoreZongsoft 开源框架的核心类库,不依赖任何第三方类库。

<a name="function"></a>

功能说明

下面将按命名空间(目录结构)进行概要说明。

Collections

该命名空间内包括有关集合的类。

Common

该命名空间内包括一些常用的工具类。其中包括相对 .NET BCL 中进行了功能强化的 Convert, Randomizer 类,对枚举类型操作的 EnumUtility 类,ISequence接口,以及 StringExtension, TeypExtension, UriExtension 等扩展类。

Communication

该命名空间内包括进行通讯和自定义通讯协议包解析的基类、接口,设计通讯处理程序时应尽量使用这里定义的接口或基类。具体实现请参考 Zongsoft.Net 项目。

Communication.Composition

该命名空间内包括“执行管道(ExecutionPipelines)”模式的全部接口和实现,执行管道是一套强大的扩展接口方案,通讯层的 Communication.Net.TcpServerCommunication.Net.FtpServer 类均采用该机制来保证服务器端的扩展性。

ComponentModel

该命名空间内包括一些相对 .NET BCL 中进行了功能强化的 TypeConverter,譬如:EnumConverterCustomBooleanConverterGuidConverter 类等。

Data

该命名空间内包括进行数据访问相关类和接口,我们提供了一个 ORM 数据引擎,有关这个它的更多内容请访问 Zongsoft.Data

Diagnostics

该命名空间内包括日志处理、诊断跟踪相关的类和接口。

Expressions

该命名空间内包括一个表达式解析以及一个类C#脚本的词法解析等功能实现(语法解析待实现)。

IO

该命名空间内包括一个虚拟文件目录系统的功能集,使用该虚拟文件系统可隔离不同操作系统中 IO 处理的差异,并支持其他外部文件系统的扩展。具体实现可参考 Zongsoft.Externals.Aliyun 这个项目中的分布式文件存储部分。

Messaging

该命名空间内包含一个消息队列处理的抽象接口,具体实现可参考 Zongsoft.Externals.Aliyun 这个项目中的消息队列部分。

Options

该命名空间内包含了一套选项配置处理的类和接口,这套选项配置以树型结构来组织应用内的所有选项配置数据,访问这些配置数据以通用的逻辑路径的方式来进行。

Options.Configuration

该命名空间内包括一套全新的配置文件的开发接口,该套接口完全兼容 .NET BCL 中的 System.Configuration 的编程模式。

为什么我们要重新编写一套类似的配置开发接口?因为 .NET BCL 自带的配置的机制太过臃肿复杂、并且扩展性也不是太友好,我们希望应用模块的配置应该和该应用模块一样是可被插件化的,它们必须可随意插拔并且保证模块之间的隔离性,当不同模块被组装在一起的时候,这些分离的选项配置数据将自动组织成一个完整的逻辑树。

Options.Profiles

该命名空间内包括一套对 Windows 中 INI 配置文件的开发接口,并且支持对 Section 以层次结构的访问方式。

Reflection

该命名空间内包括一个高性能的反射器以及访问路径表达式的解析套件。

Runtime

Runtime.Caching

该命名空间内包含 BufferCache 这两种缓存机制的功能集。

  1. BufferManager 提供了在频繁分配不确定大小的内存片段的场景下的一个很好的解决方案,譬如在 TCP 通讯中,接收端并发的收到各个发送端发送过来的数据片段,可以采用 BufferManager 来将这些临时数据片段保存起来待到整个数据包接收完成后再反馈给上层应用完整的数据包。

  2. ICache 表示操作缓存的接口,MemoryCache 是它的一个内存缓存的实现,远程缓存案例可参考 Zongsoft.Externals.Redis 项目。

Runtime.Serialization

该命名空间内包括了一套序列化和反序列化的相关类和接口。

Security

该命名空间包括凭证、验证码以及安全、授权相关的基类和接口。

Security.Membership

该命名空间内包括一套完整的基于角色安全的授权管理接口,它还包含了一个最佳实践的方案。具体实现请参考 Zongsoft.Security 项目。

Services

该命名空间内包括一套服务访问和管理的 IServiceProviderIServiceProviderFactory 接口和实现 ServiceProviderServiceProviderFactory;以及一套有关 ICommand 命令模式的接口和实现;还有一个后台服务的工作者 IWorker 接口和 WorkerBase 基类。

Services.Commands

该命名空间内包括后台服务命令的实现类,譬如 WorkerCommandBaseWorkerStartCommandWorkerStopCommand 等类。

Terminals

该命名空间内包括一套终端程序的接口和实现,使用该实现可以快速的完成一个强大的基于控制台的应用。

Commands

该命名空间内包括关于终端程序的一些常用命令的实现类,譬如 ExitCommandClearCommandHelpCommand 等类。

Text

该命名空间内包括一套基于正则表达式的文本表达式的解析、处理的类。

Transactions

该命名空间内包括有关事务的类和接口,有关应用事务支持的实现可参考 Zongsoft.Data 数据引擎 中的事务支持。

Transitions

该命名空间内包括一个轻量级的通用状态机的接口和实现类。

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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 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 (48)

Showing the top 5 NuGet packages that depend on Zongsoft.Core:

Package Downloads
Zongsoft.Web

This is a base class library that provides web development.

Zongsoft.Plugins

This is a framework about plugin application development.

Zongsoft.Data

This is an Object/Relational Mapping(ORM) data engine.

Zongsoft.Externals.Redis

This is a library about Redis SDK.

Zongsoft.Security

This is a class library about security development.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
7.36.1 96 2/12/2026
7.36.0 298 2/11/2026
7.35.0 113 2/9/2026
7.34.0 113 2/4/2026
7.33.0 127 2/2/2026
7.32.0 112 1/29/2026
7.31.2 106 1/28/2026
7.31.1 106 1/28/2026
7.31.0 97 1/27/2026
7.30.0 98 1/27/2026
7.29.3 98 1/26/2026
7.29.2 99 1/24/2026
7.29.1 121 1/21/2026
7.29.0 116 1/19/2026
7.28.1 124 1/12/2026
7.28.0 347 1/11/2026
7.27.0 514 1/8/2026
7.26.0 341 1/8/2026
7.25.0 274 12/31/2025
7.24.0 364 12/24/2025
Loading failed