Senparc.Ncf.Utility 0.21.1-preview3

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

Senparc.Ncf.Utility

Senparc.Ncf.Utility is the shared utility layer for NCF applications and modules. It groups DI, HTTP context, localization, reflection, expression, stream, file, and compatibility helpers.

Features

  • NCF DI and application-pipeline extensions.
  • Culture normalization and scoped language helpers.
  • Reflection and expression/predicate composition utilities.
  • HTTP request metadata, path mapping, stream wrappers, file names, ID-card validation, and legacy encryption helpers.

Installation

<PackageReference Include="Senparc.Ncf.Utility" Version="0.26.0-preview3" />

Key API

  • UseSenparcMvcDI(...) and the DI helpers connect common services to the host container.
  • NcfLocalizationOptions.TryNormalizeCulture(...) and GetSystemLanguage(...) normalize request culture.
  • GlobalCulture.Create(...) provides scoped language callbacks such as SetEnglish(...) and SetChinese(...).
  • PredicateBuilder, SenparcExpressionHelper<TEntity>, and SenparcIQueryableExtension compose query expressions.
  • SenparcHttpContext.MapPath(...), MapWebPath(...), and request extensions expose safe host-aware paths and request metadata.
  • ReflectionHelper.CreateInstance(...)/GetTypeFromName(...) support controlled plug-in discovery.

Review the security implications of path, reflection, DES, and request helpers before exposing them to untrusted input. Prefer modern authenticated encryption and allowlisted types for new code.

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 (15)

Showing the top 5 NuGet packages that depend on Senparc.Ncf.Utility:

Package Downloads
Senparc.Ncf.Core

Senparc.Ncf.Core

Senparc.Ncf.Database

Senparc.Ncf.Database

Senparc.Ncf.Service

Senparc.Ncf.Service

Senparc.Ncf.AreaBase

Senparc.Ncf.AreaBase

Senparc.Ncf.DatabasePlant

Senparc.Ncf.DatabasePlant 数据库组装厂。 一般只在开发环境下对数据库修改时使用,因此可以添加条件编译符号,如: <PackageReference Condition=" 'Release' != 'Release' " Include="Senparc.Ncf.DatabasePlant" Version="0.2.200.102-beta1" />

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.21.1-preview3 2,731 7/31/2026
0.21.0-preview2 631 7/26/2026
0.20.1-preview1 612 6/17/2026
0.19.10.1-preview 503 5/9/2026
0.19.9-preview.1 190 2/13/2026
0.19.8.4-preview 361 12/28/2025
0.19.8.2-preview 421 12/28/2025
0.19.8-preview.1 281 11/1/2025
0.19.6.7-preview1 619 8/20/2025
0.19.6.5-preview1 528 8/18/2025
0.19.6.4-preview1 568 7/14/2025
0.19.6.3-preview1 628 7/2/2025
0.19.6.2-preview1 587 7/2/2025
0.19.6.1-preview1 836 6/6/2025
0.19.6-preview1 900 4/29/2025
0.19.5-preview1 631 4/12/2025
0.19.4.5-preview1 490 4/12/2025
0.19.4.3-preview1 579 3/9/2025
0.19.4.2-preview1 678 2/21/2025
0.19.2-preview 420 6/16/2026
Loading failed

v0.1.0 创世
[2024-10-07] 删除 AESEncryptionUtility 类,统一使用 CO2NET 相关功能。
[2024-10-26] 0.18.6-preview1 新增 GlobalCulture 类
[2025-04-29] v0.19.6-preview1 Update CO2NET and AIKernel
[2025-11-01] update basic libraries, including Senparc.AI
[2026-07-17] v0.21.0-preview2 增强全局文化配置与本地化选项支持
1、新增本地化选项并统一全局文化信息管理
2、增强文化切换、默认语言与回退语言配置能力
[2026-07-31] v0.21.1-preview3 升级 CO2NET 4.2.0 基础依赖
1、升级 Senparc.CO2NET 至 4.2.0 并保持现有项目行为兼容