Wlniao.XCenter 10.0.10

dotnet add package Wlniao.XCenter --version 10.0.10
                    
NuGet\Install-Package Wlniao.XCenter -Version 10.0.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="Wlniao.XCenter" Version="10.0.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Wlniao.XCenter" Version="10.0.10" />
                    
Directory.Packages.props
<PackageReference Include="Wlniao.XCenter" />
                    
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 Wlniao.XCenter --version 10.0.10
                    
#r "nuget: Wlniao.XCenter, 10.0.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 Wlniao.XCenter@10.0.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=Wlniao.XCenter&version=10.0.10
                    
Install as a Cake Addin
#tool nuget:?package=Wlniao.XCenter&version=10.0.10
                    
Install as a Cake Tool

xcore

Wlniao.XCenter for .NET CORE

License

GitHub License
Package Version Pull Count

Add Package

dotnet add package Wlniao.XCenter

API 变动(10.0.8)

Wlniao.XServer.TokenApi.Request<T> 签名已收紧,以适配 NativeAOT / 裁剪发布:

// 10.0.8 起
static ApiResult<T> Request<T>(string apinode, string url, string token,
    string dataJson, JsonTypeInfo<T> dataInfo, string traceid = "")
  • data 不再接受匿名类型或任意 object,调用方需先用 Json.Serialize(data, jsonTypeInfo) 生成请求体;
  • dataInfo 传响应载荷 T 的源生成元数据,与 Wlniao.XServer.XApi.Request 用法一致;
  • 未登记类型在 AOT 下会抛 NotSupportedException,不再静默返回空数据。

迁移示例:

var requestJson = Json.Serialize(request, MyJsonContext.Default.RequestDto);
var result = TokenApi.Request<ResultDto>("node", url, token, requestJson, MyJsonContext.Default.ResultDto);

另外,引用 Wlniao.XCenter.Context 会启用 Json.StrictTrimDiagnostics = true:AOT / 裁剪下未登记类型快速失败,CoreCLR 下行为不变。详见根目录 CHANGELOG.md 10.0.8。

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.10 40 11/30/2026
10.0.9 66 11/25/2026
10.0.8 74 11/25/2026
10.0.7 103 11/23/2026
10.0.6 87 11/23/2026
10.0.5 91 11/22/2026
10.0.4 91 11/22/2026
10.0.3 90 11/22/2026
10.0.2 128 11/20/2026
10.0.1 109 11/2/2026
10.0.0 112 10/31/2026
8.0.98 259 5/13/2026
8.0.97 136 5/13/2026
8.0.96 149 5/13/2026
8.0.94 171 3/31/2026
8.0.93 150 3/25/2026
8.0.92 175 1/14/2026
8.0.91 265 12/24/2025
Loading failed