TianWeiToolsPro.Common
3.2.6
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
dotnet add package TianWeiToolsPro.Common --version 3.2.6
NuGet\Install-Package TianWeiToolsPro.Common -Version 3.2.6
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="TianWeiToolsPro.Common" Version="3.2.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TianWeiToolsPro.Common" Version="3.2.6" />
<PackageReference Include="TianWeiToolsPro.Common" />
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 TianWeiToolsPro.Common --version 3.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TianWeiToolsPro.Common, 3.2.6"
#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 TianWeiToolsPro.Common@3.2.6
#: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=TianWeiToolsPro.Common&version=3.2.6
#tool nuget:?package=TianWeiToolsPro.Common&version=3.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TianWeiToolsPro.Common
TianWeiToolsPro.Common 提供通用扩展、文件读写、操作结果、日志、属性通知、命令与事件通信,适用于桌面应用及工业软件的公共基础层。
目标框架与平台
支持 .NET Framework 4.7.2、4.8,以及 .NET 6、8、10;仅支持 x64 进程。
主要功能
| 功能 | 公开入口与说明 |
|---|---|
| 常用扩展 | TianWeiToolsPro.Common.Extensions:集合、字符串、数值、枚举与类型转换 |
| 校验计算 | CheckExtension:范围判断、数组安全取值、CRC 与校验和;MathExtensions:数值限幅等 |
| 序列化 | SerializerExtension:JSON、XML、Protobuf 序列化与对应的对象复制 |
| 文件与表格 | TianWeiToolsPro.Common.Files.FileHelper:CSV、Excel 与 DataTable / DataSet 读写 |
| 操作结果 | OperateResultEx、OperateResultEx<T>:成功状态、错误消息和返回数据 |
| 日志 | LoggerEx、LoggerEx<TChannel>:分级日志、通道与文件输出 |
| 属性通知 | BindableBase、ViewModelBase |
| 命令 | DelegateCommand、AsyncDelegateCommand |
| 事件通信 | EventAggregator、EaHelper、TEventArgs<T>、TEventArgs<TParaName, TValue> |
Excel 许可配置
Excel 读写基于 EPPlus。宿主应用应在首次调用 Excel 功能前完成 EPPlus 许可配置;本库不设置或修改进程级许可。CSV 功能不需要 EPPlus 许可配置。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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 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. |
| .NET Framework | net472 is compatible. net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- CsvHelper (>= 33.1.0)
- EPPlus (>= 8.5.0)
- Newtonsoft.Json (>= 13.0.4)
- protobuf-net (>= 3.2.56)
- Serilog.Sinks.File (>= 7.0.0)
- System.Data.HashFunction.CRC (>= 2.0.0)
- System.Threading.Tasks.Dataflow (>= 10.0.3)
-
.NETFramework 4.8
- CsvHelper (>= 33.1.0)
- EPPlus (>= 8.5.0)
- Newtonsoft.Json (>= 13.0.4)
- protobuf-net (>= 3.2.56)
- Serilog.Sinks.File (>= 7.0.0)
- System.Data.HashFunction.CRC (>= 2.0.0)
- System.Threading.Tasks.Dataflow (>= 10.0.3)
-
net10.0
- CsvHelper (>= 33.1.0)
- EPPlus (>= 8.5.0)
- Newtonsoft.Json (>= 13.0.4)
- protobuf-net (>= 3.2.56)
- Serilog.Sinks.File (>= 7.0.0)
- System.Data.HashFunction.CRC (>= 2.0.0)
-
net6.0
- CsvHelper (>= 33.1.0)
- EPPlus (>= 8.5.0)
- Newtonsoft.Json (>= 13.0.4)
- protobuf-net (>= 3.2.56)
- Serilog.Sinks.File (>= 7.0.0)
- System.Data.HashFunction.CRC (>= 2.0.0)
-
net8.0
- CsvHelper (>= 33.1.0)
- EPPlus (>= 8.5.0)
- Newtonsoft.Json (>= 13.0.4)
- protobuf-net (>= 3.2.56)
- Serilog.Sinks.File (>= 7.0.0)
- System.Data.HashFunction.CRC (>= 2.0.0)
- System.Threading.Tasks.Dataflow (>= 10.0.3)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on TianWeiToolsPro.Common:
| Package | Downloads |
|---|---|
|
TianWeiToolsPro
整合通用工具、工业通讯、WPF控件及图像绘制的工具包。 |
|
|
TianWeiToolsPro.Communication
PLC、串口会话、工业协议编解码与本地通讯模拟工具库。 |
|
|
TianWeiToolsPro.UI.Drawing
WPF图像显示、交互绘图、ROI编辑与坐标标尺控件库。 |
|
|
TianWeiToolsPro.UI
Windows WPF控件、主题、导航、对话框与界面服务库。 |
GitHub repositories
This package is not used by any popular GitHub repositories.