Liwendong.Utility
3.3.2
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
.NET Framework 4.5.1
This package targets .NET Framework 4.5.1. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Liwendong.Utility --version 3.3.2
NuGet\Install-Package Liwendong.Utility -Version 3.3.2
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="Liwendong.Utility" Version="3.3.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Liwendong.Utility" Version="3.3.2" />
<PackageReference Include="Liwendong.Utility" />
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 Liwendong.Utility --version 3.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Liwendong.Utility, 3.3.2"
#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 Liwendong.Utility@3.3.2
#: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=Liwendong.Utility&version=3.3.2
#tool nuget:?package=Liwendong.Utility&version=3.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Liwendong.Utility
通用辅助工具集合。
字符串、日期、IO、加密、邮件、HTTP、反射等常用辅助能力。
安装
dotnet add package Liwendong.Utility
说明
- 本包属于 LiwendongPackages 组件集合。
- 具体目标框架与依赖请参阅本包
.csproj文件。
版本历史
3.3.2 (2026-10-22)
- 修复:
GetRequestParameterToDictionary(HttpContext)(.NET Core 分支)与GetRequestParameterRemark(HttpContext)缺少httpContext判空,在无 HTTP 上下文(后台线程、未注册IHttpContextAccessor等)调用时抛出NullReferenceException,现补齐判空并返回空结果,与其余重载行为一致 - 修复:
GetRequestParameterToDictionary(HttpContextBase)等 .NET Framework 分支中 JSON body 反序列化结果可能为 null,补齐?? new SortedDictionary兜底,避免合并 QueryString 时抛出NullReferenceException - 修复:
GetRequestParameterRemark两个重载增加整体异常兜底(对齐GetIP的模式)。.NET Framework 下HttpContext.Current会流转到后台线程(CallContext),请求结束后RequestExists()可能通过但访问Form/InputStream仍会抛NullReferenceException;该方法常用于异常处理器(如OnException),自身绝不能抛异常掩盖原始错误,现内部异常捕获记日志后返回空字符串
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 was computed. 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 was computed. 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. |
| .NET Core | netcoreapp3.1 is compatible. |
| .NET Framework | net451 is compatible. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 is compatible. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Liwendong.Resources (>= 2.0.1)
- MailKit (>= 4.18.1)
- Microsoft.AspNetCore.Http (>= 2.2.2)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Data.SqlClient (>= 5.2.3)
- Microsoft.Extensions.Caching.Memory (>= 3.1.1)
- Microsoft.Extensions.Configuration (>= 3.1.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 3.1.1)
- Microsoft.Extensions.Configuration.Binder (>= 3.1.1)
- Microsoft.Extensions.Configuration.Json (>= 3.1.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 3.1.1)
- Newtonsoft.Json (>= 13.0.3)
- System.Drawing.Common (>= 6.0.0)
- System.Text.Encoding.CodePages (>= 10.0.0)
-
.NETFramework 4.5.1
- Liwendong.Resources (>= 2.0.1)
- MailKit (>= 2.15.0)
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.6
- Liwendong.Resources (>= 2.0.1)
- MailKit (>= 2.15.0)
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.7
- Liwendong.Resources (>= 2.0.1)
- MailKit (>= 4.18.1)
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.8
- Liwendong.Resources (>= 2.0.1)
- MailKit (>= 4.18.1)
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- Liwendong.Resources (>= 2.0.1)
- MailKit (>= 4.18.1)
- Microsoft.AspNetCore.Http (>= 2.2.2)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Data.SqlClient (>= 5.2.3)
- Microsoft.Extensions.Caching.Memory (>= 8.0.1)
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.Configuration.Json (>= 8.0.1)
- Newtonsoft.Json (>= 13.0.3)
- System.Text.Encoding.CodePages (>= 8.0.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Liwendong.Utility:
| Package | Downloads |
|---|---|
|
Liwendong.Frameworks
基础框架 |
|
|
Liwendong.Frameworks.Services.API
服务API管理 |
|
|
Liwendong.Wexin.MP.SDK
微信公众号辅助SDK |
|
|
Liwendong.Frameworks.Data.DapperExtend
Dapper扩展 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.3.3 | 152 | 10/23/2026 |
| 3.3.2 | 90 | 10/22/2026 |
| 3.3.1 | 331 | 10/20/2026 |
| 3.2.0 | 104 | 10/8/2026 |
| 2.9.3 | 274 | 5/9/2026 |
| 2.9.2 | 184 | 2/15/2026 |
| 2.9.1 | 352 | 11/27/2025 |
| 2.8.11 | 313 | 11/24/2025 |
| 2.8.10 | 753 | 11/20/2025 |
| 2.8.9 | 230 | 9/27/2025 |
| 2.8.8 | 429 | 9/22/2025 |
| 2.8.7 | 422 | 9/17/2025 |
| 2.8.6 | 338 | 9/15/2025 |
| 2.8.5 | 326 | 9/4/2025 |
| 2.8.3 | 839 | 9/1/2025 |
| 2.8.2 | 466 | 8/26/2025 |
| 2.8.1 | 250 | 8/23/2025 |
| 2.8.0 | 343 | 8/13/2025 |
| 2.7.3 | 297 | 8/13/2025 |
| 2.7.2 | 472 | 8/13/2025 |
Loading failed