CodeWF.Toolkit.NetWeaver
1.1.10
dotnet add package CodeWF.Toolkit.NetWeaver --version 1.1.10
NuGet\Install-Package CodeWF.Toolkit.NetWeaver -Version 1.1.10
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="CodeWF.Toolkit.NetWeaver" Version="1.1.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeWF.Toolkit.NetWeaver" Version="1.1.10" />
<PackageReference Include="CodeWF.Toolkit.NetWeaver" />
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 CodeWF.Toolkit.NetWeaver --version 1.1.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeWF.Toolkit.NetWeaver, 1.1.10"
#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 CodeWF.Toolkit.NetWeaver@1.1.10
#: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=CodeWF.Toolkit.NetWeaver&version=1.1.10
#tool nuget:?package=CodeWF.Toolkit.NetWeaver&version=1.1.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CodeWF.Toolkit.NetWeaver
AOT 友好的 TCP/UDP 数据包二进制序列化核心:基于特性声明字段布局与顺序,零第三方依赖。AOT-friendly binary packet serialization core for TCP and UDP protocols with zero dependencies.
安装
dotnet add package CodeWF.Toolkit.NetWeaver
零第三方依赖;目标框架 net10.0。只要序列化能力选本包,需要完整 TCP/UDP 通信能力请用 CodeWF.Toolkit.NetWrapper。
快速使用
用特性声明包头与字段顺序,属性即协议:
[NetHead(0x01, 1)]
public sealed class SamplePacket : INetObject
{
[NetFieldOrder(0)] public int Id { get; set; }
[NetFieldOrder(1)] public float Score { get; set; }
[NetFieldOrder(2)] public string Title { get; set; } = string.Empty;
}
var buffer = packet.Serialize(systemId: 0);
var restored = buffer.Deserialize<SamplePacket>();
[NetIgnoreMember]跳过成员,位域场景用NetFieldOffsetAttribute精确布局。
注意事项
- 反射式 DTO 序列化通过
DynamicallyAccessedMembers/UnconditionalSuppressMessage声明保留要求;裁剪时需保留被序列化 DTO 的公共属性。
文档
| Product | Versions 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.
-
net10.0
- CodeWF.Toolkit.Lang (>= 1.1.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CodeWF.Toolkit.NetWeaver:
| Package | Downloads |
|---|---|
|
CodeWF.Toolkit.NetWrapper
TCP/UDP 通信封装与命令分发:客户端/服务端、心跳、断线重连,内置远程文件系统与断点续传能力。TCP/UDP helpers and command dispatching with built-in remote file system and resumable file transfer. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.10 | 54 | 11/20/2026 |
| 1.1.9 | 107 | 11/16/2026 |
| 1.1.8 | 110 | 11/16/2026 |
| 1.1.7 | 103 | 11/16/2026 |
| 1.1.6 | 114 | 11/8/2026 |
| 1.1.5 | 99 | 11/8/2026 |
| 1.1.4 | 94 | 11/8/2026 |
| 1.1.3 | 103 | 11/8/2026 |
| 1.1.2 | 134 | 11/1/2026 |
| 1.1.1 | 134 | 10/26/2026 |
| 1.1.0 | 119 | 10/22/2026 |
| 1.1.0-alpha.1 | 79 | 10/21/2026 |
| 1.0.0.27 | 122 | 10/19/2026 |
| 1.0.0.26 | 120 | 10/16/2026 |
| 1.0.0.25 | 113 | 10/16/2026 |
| 1.0.0.24 | 124 | 10/15/2026 |
| 1.0.0.23 | 129 | 10/15/2026 |
| 1.0.0.22 | 109 | 10/15/2026 |
| 1.0.0.20 | 115 | 10/15/2026 |
| 1.0.0.19 | 122 | 10/15/2026 |
Loading failed