PlumX.Core.Configuration.Nacos 1.0.0-preview.7

This is a prerelease version of PlumX.Core.Configuration.Nacos.
dotnet add package PlumX.Core.Configuration.Nacos --version 1.0.0-preview.7
                    
NuGet\Install-Package PlumX.Core.Configuration.Nacos -Version 1.0.0-preview.7
                    
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="PlumX.Core.Configuration.Nacos" Version="1.0.0-preview.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PlumX.Core.Configuration.Nacos" Version="1.0.0-preview.7" />
                    
Directory.Packages.props
<PackageReference Include="PlumX.Core.Configuration.Nacos" />
                    
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 PlumX.Core.Configuration.Nacos --version 1.0.0-preview.7
                    
#r "nuget: PlumX.Core.Configuration.Nacos, 1.0.0-preview.7"
                    
#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 PlumX.Core.Configuration.Nacos@1.0.0-preview.7
                    
#: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=PlumX.Core.Configuration.Nacos&version=1.0.0-preview.7&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=PlumX.Core.Configuration.Nacos&version=1.0.0-preview.7&prerelease
                    
Install as a Cake Tool

PlumX.Core.Configuration.Nacos

NuGet 包 ID:PlumX.Core.Configuration.Nacos

定位

将 Nacos 作为可选配置中心接入 PlumX.Core.Config。按照公共路由、私有路由和应用名装载 JSON 配置,并支持多地址、认证、可选加载和变更重载。

依赖与接入

  • 目标框架:net8.0
  • 依赖:Cuture.Extensions.Configuration.NacosPlumX.Core.Config
  • 入口:NacosConfigurationProviderAddPlumNacos
configuration.AddPlumNacos(options, applicationName);

配置

{
  "ConfigCenter": {
    "Type": "Nacos",
    "Address": "http://nacos-1:8848,http://nacos-2:8848",
    "AppMainRoute": "production/plum",
    "PublicRoute": "production/common",
    "PrivateRoute": "production/plum",
    "PublicNames": ["FeatureFlags"],
    "UserName": "由密钥管理服务提供",
    "Password": "由密钥管理服务提供",
    "PollWaitTime": 120,
    "ReloadOnChange": true,
    "Optional": false,
    "FailStartupOnError": true
  }
}

Address 支持逗号分隔的 Nacos 地址;用户名和密码必须同时设置。AppMainRoute 是旧路由兼容字段,未设置 Public/PrivateRoute 时会作为二者默认值。PublicNames、路由、可选加载和热更新的统一语义见 配置中心文档

边界

本项目只构造 IConfiguration source,不负责业务配置绑定和密钥生命周期。Nacos 不可用时是否继续启动由 Optional 决定。

完整使用示例

Nacos Provider 的显式加载和 ConfigCenter 配置见 模块使用示例

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 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. 
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
1.0.0-preview.7 58 9/2/2026
1.0.0-preview.6 57 9/1/2026
1.0.0-preview.5 57 8/31/2026
1.0.0-preview.4 67 8/19/2026
1.0.0-preview.3 60 8/18/2026
1.0.0-preview.1 68 8/14/2026