Senparc.Ncf.Utility 0.21.2-preview4

Prefix Reserved
This is a prerelease version of Senparc.Ncf.Utility.
dotnet add package Senparc.Ncf.Utility --version 0.21.2-preview4
                    
NuGet\Install-Package Senparc.Ncf.Utility -Version 0.21.2-preview4
                    
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.2-preview4" />
                    
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.2-preview4" />
                    
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.2-preview4
                    
#r "nuget: Senparc.Ncf.Utility, 0.21.2-preview4"
                    
#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.2-preview4
                    
#: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.2-preview4&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Senparc.Ncf.Utility&version=0.21.2-preview4&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.2-preview4 240 11/11/2026
0.21.1-preview3 4,489 7/31/2026
0.21.0-preview2 689 7/26/2026
0.20.1-preview1 641 6/17/2026
0.19.10.1-preview 677 5/9/2026
0.19.9-preview.1 208 2/13/2026
0.19.8.4-preview 404 12/28/2025
0.19.8.2-preview 440 12/28/2025
0.19.8-preview.1 300 11/1/2025
0.19.6.7-preview1 647 8/20/2025
0.19.6.5-preview1 544 8/18/2025
0.19.6.4-preview1 587 7/14/2025
0.19.6.3-preview1 657 7/2/2025
0.19.6.2-preview1 602 7/2/2025
0.19.6.1-preview1 862 6/6/2025
0.19.6-preview1 929 4/29/2025
0.19.5-preview1 645 4/12/2025
0.19.4.5-preview1 501 4/12/2025
0.19.4.3-preview1 592 3/9/2025
0.19.2-preview 440 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 并保持现有项目行为兼容
[2026-11-11] v0.21.1-preview3 说明非中文资源缺失时的回退顺序
1、支持文化列表仍由 NcfLocalizationOptions 统一提供。
2、缺少非中文资源时,按当前语言、英语、简体中文和中性资源回退。
[2026-11-12] v0.21.2-preview4 完善本地化选项与资源回退配置
1、补充本地化选项对多语言资源回退行为的支持。
2、保持现有模块配置方式兼容,并为缺失翻译提供稳定默认值。