![]() |
VOOZH | about |
dotnet add package Shipeng.Foundation --version 4.0.0
NuGet\Install-Package Shipeng.Foundation -Version 4.0.0
<PackageReference Include="Shipeng.Foundation" Version="4.0.0" />
<PackageVersion Include="Shipeng.Foundation" Version="4.0.0" />Directory.Packages.props
<PackageReference Include="Shipeng.Foundation" />Project file
paket add Shipeng.Foundation --version 4.0.0
#r "nuget: Shipeng.Foundation, 4.0.0"
#:package Shipeng.Foundation@4.0.0
#addin nuget:?package=Shipeng.Foundation&version=4.0.0Install as a Cake Addin
#tool nuget:?package=Shipeng.Foundation&version=4.0.0Install as a Cake Tool
中文:Shipeng.Foundation 是一个面向 .NET 10 的基础能力库,目标是把业务系统开发中高频、重复、容易出错的能力沉淀为可复用的工具、扩展、基础设施封装和集成组件。它覆盖 HTTP、缓存、Redis、MongoDB、SQL、SqlSugar、EF Core、RabbitMQ、MinIO、Excel、Word、二维码、加解密、序列化、分页、树结构、异常处理、任务队列、JWT、Swagger/OpenAPI、支付、短信、日志、对象映射、动态 API、数据库索引等常见场景。
English: Shipeng.Foundation is a .NET 10 foundation library for reusable application utilities, infrastructure helpers, integration components, and development accelerators. It covers HTTP, caching, Redis, MongoDB, SQL, SqlSugar, EF Core, RabbitMQ, MinIO, Excel, Word, QR codes, cryptography, serialization, pagination, tree structures, exception handling, task queues, JWT, Swagger/OpenAPI, payments, SMS, logging, object mapping, dynamic APIs, database indexes, and other common application scenarios.
The public namespaces of many legacy helpers are intentionally kept as
Shipeng.Utilfor compatibility with existing projects. The package, assembly, product, and project name areShipeng.Foundation.为了兼容已有项目,很多历史工具类的公开命名空间仍保留为
Shipeng.Util。当前包名、程序集名、产品名和项目名统一为Shipeng.Foundation。
| Item | Value |
|---|---|
| Package ID / 包 ID | Shipeng.Foundation |
| Assembly / 程序集 | Shipeng.Foundation |
| Target Framework / 目标框架 | net10.0 |
| Current Version / 当前版本 | 4.0.0 |
| Nullable | disable for legacy compatibility / 为兼容旧代码暂时关闭 |
| Implicit Usings | enable |
| Package Readme | README.md |
Install from a local or remote NuGet source:
dotnet add package Shipeng.Foundation --version 4.0.0
If you are referencing this project from the same solution:
<ProjectReference Include="..\Shipeng.Foundation\Shipeng.Foundation.csproj" />
如果你在同一个解决方案中引用源码项目,请使用上面的 ProjectReference。如果你发布到 NuGet 或私有源,请使用 dotnet add package。
Many existing helpers use the compatibility namespace Shipeng.Util:
using Shipeng.Util;
using Shipeng.Util.Helper;
using Shipeng.Util.Cache;
Infrastructure modules use Shipeng.* namespaces:
using Shipeng.Data.MongoDB.Repositorie;
using Shipeng.Data.SqlSugar.Repositories;
using Shipeng.Authentication.JwtBearer;
using Shipeng.DatabaseIndex;
Example:
// String helper, encryption helper, file helper, HTTP helper, and many other APIs
// are available through the compatibility namespaces used by existing projects.
var isEmpty = string.IsNullOrWhiteSpace(input);
Helper, Util, Extention, Primitives, Model, DTO, Enum, Security, and related folders contain common utilities used by business applications:
中文说明:
The package includes multiple data access styles so different projects can choose the most suitable abstraction:
中文说明:
Cache and messaging related modules include:
CSRedisCore, Caching.CSRedis, and ServiceStack.Redis.RabbitMQ.Client APIs.中文说明:
The Shipeng infrastructure modules provide reusable ASP.NET Core capabilities:
中文说明:
The library contains helpers for common external systems:
中文说明:
The package keeps many legacy namespaces, method names, and DTO shapes because existing projects may already reference them. Renaming every public API would make the library cleaner internally but would break callers. Public compatibility is therefore treated as a first-class requirement.
本库保留了很多历史命名空间、方法名和 DTO 结构,因为已有项目可能已经引用这些 API。一次性重命名所有公开 API 会让内部更整齐,但会破坏调用方。因此兼容性是首要设计目标之一。
The library avoids obvious performance problems where possible:
HttpClient-based patterns where available to reduce connection setup cost and socket exhaustion risk.本库尽量避免明显性能问题:
HttpClient 相关模式,减少连接创建成本和 Socket 耗尽风险。Some APIs are platform-specific or dependency-heavy. For example, System.Drawing.Common, Office interop, and some image/font features are best suited for Windows environments. Server-side Linux deployments should prefer cross-platform image libraries and avoid Office interop at runtime.
部分 API 具有平台限制或依赖较重。例如 System.Drawing.Common、Office Interop、部分图片和字体能力更适合 Windows 环境。Linux 服务端部署时建议优先选择跨平台图片库,并避免运行时依赖 Office Interop。
net10.0; callers should use a compatible .NET SDK/runtime.Microsoft.AspNetCore.App.中文说明:
net10.0,调用方需要使用兼容的 .NET SDK/runtime。Microsoft.AspNetCore.App。Before publishing a package, run:
dotnet restore Shipeng.Foundation\Shipeng.Foundation.csproj
dotnet build Shipeng.Foundation\Shipeng.Foundation.csproj -t:Rebuild -v:q -clp:ErrorsOnly
dotnet build Shipeng.Foundation\Shipeng.Foundation.csproj -c Release -v:q -clp:ErrorsOnly
dotnet pack Shipeng.Foundation\Shipeng.Foundation.csproj -c Release --no-build -v:q -clp:ErrorsOnly
dotnet list Shipeng.Foundation\Shipeng.Foundation.csproj package --outdated
dotnet list Shipeng.Foundation\Shipeng.Foundation.csproj package --vulnerable --include-transitive
发布前建议确认:
0 errors。0 warnings,除非某些兼容性警告已经明确评估并在项目文件中集中说明。English:
net10.0.Shipeng.Foundation.Shipeng.Util namespaces for source and binary compatibility.Shipeng.*.中文:
net10.0。Shipeng.Foundation。Shipeng.Util 公开命名空间。Shipeng.* 基础设施模块。Shipeng.Foundation is the new package identity. Shipeng.Util remains a compatibility namespace. This means new users should install and reference the Shipeng.Foundation package, while existing source code may continue to use:
using Shipeng.Util;
using Shipeng.Util.Helper;
using Shipeng.Util.Cache;
中文说明:
Shipeng.Foundation 是新的包身份;Shipeng.Util 是兼容命名空间。新用户应安装 Shipeng.Foundation 包;旧项目中已有的 using Shipeng.Util 可以继续保留。
中文建议:
This project references multiple third-party packages. Some packages may have their own commercial, redistribution, or runtime restrictions. Please review the license of each dependency before publishing a product that includes this package.
本项目引用了多个第三方包。部分包可能有商业授权、再分发或运行时限制。将本包用于正式产品发布前,请核查每个依赖包的许可证。
For internal projects, keep the package version aligned with the solution version. For public distribution, publish immutable versions and document breaking changes clearly.
内部项目建议保持包版本与解决方案版本一致。公开发布时建议使用不可变版本,并清楚记录破坏性变更。
| 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 |
|---|---|---|
| 4.0.0 | 42 | 6/27/2026 |
中文:4.0.0 升级到 net10.0,项目和 NuGet 包身份统一为 Shipeng.Foundation,同时保留 Shipeng.Util 公开命名空间以兼容历史项目;合并通用工具、数据访问、MongoDB、SqlSugar、EF Core、RabbitMQ、MinIO、Office、二维码、JWT、Swagger/OpenAPI、日志、映射、支付、短信等基础设施能力;新增 ID 字符串辅助类和 MongoDB + SQL Server 混合分页查询辅助类;更新依赖并完成编译、打包、过期包和漏洞包检查。 English: Version 4.0.0 targets net10.0, renames the project and NuGet identity to Shipeng.Foundation, keeps Shipeng.Util public namespaces for compatibility, merges reusable utilities and infrastructure helpers, adds ID string and MongoDB + SQL Server hybrid pagination helpers, updates dependencies, and verifies build, package generation, outdated package checks, and vulnerability checks.