Senparc.Xncf.XncfBuilder
0.41.10
Prefix Reserved
dotnet add package Senparc.Xncf.XncfBuilder --version 0.41.10
NuGet\Install-Package Senparc.Xncf.XncfBuilder -Version 0.41.10
<PackageReference Include="Senparc.Xncf.XncfBuilder" Version="0.41.10" />
<PackageVersion Include="Senparc.Xncf.XncfBuilder" Version="0.41.10" />
<PackageReference Include="Senparc.Xncf.XncfBuilder" />
paket add Senparc.Xncf.XncfBuilder --version 0.41.10
#r "nuget: Senparc.Xncf.XncfBuilder, 0.41.10"
#:package Senparc.Xncf.XncfBuilder@0.41.10
#addin nuget:?package=Senparc.Xncf.XncfBuilder&version=0.41.10
#tool nuget:?package=Senparc.Xncf.XncfBuilder&version=0.41.10
Senparc.Xncf.XncfBuilder
Senparc.Xncf.XncfBuilder is an NCF module and service layer for generating the starter code and metadata of an XNCF module.
Features
- Generates module files, application-service interfaces, database entities, and migration scaffolding.
- Reads the XNCF template package and writes multiple generated files with placeholder replacement.
- Provides database migration and template inspection workflows through NCF function requests.
- Includes module-inventory request/response events for cross-module discovery.
- Builds and runs generated modules in an isolated
Senparc.Webpreview process without restarting the current site.
Installation
<PackageReference Include="Senparc.Xncf.XncfBuilder" Version="0.26.0-preview3" />
For the dotnet new workflow, install the companion template package:
dotnet new install Senparc.Xncf.XncfBuilder.Template
dotnet new xncf -n MyProject --force --UseDatabase true
Key API
BuildXncfAppServicehandles module-generation operations.BuildXncf_BuildRequest,BuildXncf_CreateAppServiceRequest, andBuildXncf_CreateDatabaseEntityRequestdescribe generation tasks.GenerateAppServiceInterfaceandDatabaseMigrationsAppServiceexpose focused code-generation workflows.MultiFileCodeGeneratorwrites template-driven file sets;BuildXncfRequestHelpernormalizes generation requests.XncfModulesInventoryRequestHandlerandXncfModulesInventoryResponseHandlersupport module inventory exchange.
Isolated preview
The Builder function UI provides these operations:
- Start or update an isolated XNCF preview publishes
Senparc.Webwith the selected generated module and starts it on a loopback port. - View XNCF preview status reports the URL, process ID, source fingerprint, module DLL hash, and optional recent output.
- Stop an isolated XNCF preview terminates the child process and removes its temporary publish directory.
The XncfBuilder module menu also exposes XNCF Preview Monitor. This AdminOnly page polls lightweight session snapshots every two seconds, displays queued and active modules together, and loads the latest output only when a session row is expanded. Task history is stored in XncfBuilderXncfPreviewTask, while child-host lifecycle data is stored in XncfBuilderXncfPreviewHost; only the latest 50 terminal sessions are hydrated into memory. A parent-site restart marks unfinished persisted tasks and hosts as interrupted because an old PID cannot be safely reattached. The two tables require an EF migration, which is intentionally not included in this source change. Before that migration is applied, or when the state database is temporarily unavailable, the parent site and preview workflow continue with in-memory state and display a persistence warning; restart the parent site after applying the migration to enable database persistence.
Generation also has an opt-in Start isolated preview after generation option. Publishing normally uses --no-restore, a versioned directory under the operating-system temporary folder, and serial MSBuild execution. The preview service performs one required restore when the new project or a package reference is newer than its assets file. A newly healthy preview replaces the previous preview for the same module; the current Senparc.Web process is not restarted.
AI-assisted closed loop
The persistent XNCF source workspace is the source of truth. AI tools must not edit the temporary preview publish directory. The intended workflow is:
- Create a module with the NuGet template, or select an existing source module.
- Read and update files inside that module workspace. A read returns a SHA-256 value; pass it back as
expectedSha256when updating an existing file to prevent overwriting a concurrent change. - Call Start or update an isolated XNCF preview only after the requested writes are complete. The preview service fingerprints the module source, verifies that
Senparc.Web.csprojdirectly references that exact source project, publishesSenparc.Web, verifies the expected module DLL exists, and rejects the result if the source changes during build or startup. A package reference or an old copied DLL is intentionally not accepted as proof that the edited source was built. - Start the new process, pass the HTTP health check, and only then stop and delete the previous healthy preview for that module.
- Inspect or test the preview, then repeat from step 2 for the next change.
The generation-time Start isolated preview after generation option is suitable for a template-only smoke test. If AI will continue editing the generated module, leave that option off and start the preview after the AI write phase.
Workspace file access is confined to a uniquely resolved XNCF project under the selected solution. Absolute paths, directory traversal, symbolic-link escapes, directories, NUL-containing content, and text files larger than 4 MB are rejected. Writes use a same-directory temporary file followed by an atomic replacement.
The default XncfPreview environment binds only to 127.0.0.1 and overrides the database/cache selection to local SQLite and local cache. Its database is created inside that preview's publish directory. Set a different environment only when intentionally testing against that environment's configuration.
This first preview mode requires a source workspace with the conventional Senparc.Web/Senparc.Web.csproj and generated <Organization>.Xncf.<Module>/<Organization>.Xncf.<Module>.csproj layout. A runtime-only distribution needs a separately shipped preview host before it can accept generated source modules.
Review generated files before committing them. Generated source can include database and authorization decisions that must be adapted to the host application's domain and security model. The child process is an isolation boundary for lifecycle, assembly loading, database, and cache—not an operating-system security sandbox. Preview startup removes inherited application environment variables except for a small runtime allowlist, but generated code still runs with the account and network permissions of the parent site and may read files available to that account. Untrusted model output therefore requires review or an additional OS/container sandbox before execution.
| 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. |
-
net10.0
- Microsoft.Agents.AI (>= 1.28.0)
- Microsoft.Agents.AI.Abstractions (>= 1.28.0)
- Microsoft.Agents.AI.Harness (>= 1.28.0)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.10)
- Microsoft.EntityFrameworkCore.SqlServer (>= 8.0.10)
- Microsoft.Extensions.AI.OpenAI (>= 10.11.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 8.0.10)
- OllamaSharp (>= 5.4.25)
- OpenAI (>= 2.14.0)
- Oracle.EntityFrameworkCore (>= 8.23.60)
- Senparc.AI (>= 0.27.4)
- Senparc.AI.AgentKernel (>= 0.1.17)
- Senparc.Ncf.DatabasePlant (>= 0.21.16)
- Senparc.Ncf.XncfBase (>= 0.29.1)
- Senparc.Xncf.AIKernel (>= 0.17.4)
- Senparc.Xncf.MCP (>= 0.5.14)
- Senparc.Xncf.PromptRange (>= 0.20.16)
- Senparc.Xncf.Sandbox.Abstractions (>= 0.3.2)
- Senparc.Xncf.XncfBuilder.Abstractions (>= 0.1.6-preview7)
- Senparc.Xncf.XncfModuleManager (>= 0.15.14)
- System.ClientModel (>= 1.16.0)
- System.CodeDom (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Senparc.Xncf.XncfBuilder:
| Package | Downloads |
|---|---|
|
Senparc.Xncf.AgentsManager
Agents managementmodule |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.41.10 | 52 | 11/19/2026 |
| 0.41.9 | 100 | 11/11/2026 |
| 0.41.8 | 68 | 11/5/2026 |
| 0.41.7 | 85 | 11/2/2026 |
| 0.41.6 | 123 | 10/10/2026 |
| 0.41.5 | 97 | 10/4/2026 |
| 0.41.4 | 104 | 9/18/2026 |
| 0.41.3 | 87 | 9/16/2026 |
| 0.41.2 | 94 | 9/15/2026 |
| 0.41.1 | 143 | 8/29/2026 |
| 0.41.0 | 261 | 8/23/2026 |
| 0.41.0-preview11 | 152 | 8/14/2026 |
| 0.40.0-preview10 | 149 | 8/12/2026 |
| 0.39.1-preview9 | 138 | 8/8/2026 |
| 0.39.0-preview8 | 137 | 8/3/2026 |
| 0.38.0-preview7 | 134 | 7/31/2026 |
| 0.37.1-preview6 | 148 | 7/28/2026 |
| 0.37.0-preview5 | 138 | 7/26/2026 |
| 0.36.5-preview4 | 135 | 7/15/2026 |
| 0.36.4-preview3 | 134 | 7/5/2026 |
[2024-08-06] v0.28.6.0-preview1 update Senparc.AI.Kernel
[2024-08-13] v0.29.0-preview1 Updated module behavior and related support.
[2024-08-31] v0.30.0-preview1 Updated module behavior and related support.
[2024-09-03] v0.30.1-preview1 Updated module behavior and related support.
[2024-09-03] v0.30.2-preview1 Updated module behavior and related support.
[2024-09-04] v0.30.3-preview1 Updated module behavior and related support.
[2024-09-07] v0.30.4-preview1 XncfBuilder updatedefault Prompt
[2024-09-07] v0.30.4.1-preview1 Updated module behavior and related support.
[2024-09-07] v0.30.4.2-preview1 Updated module behavior and related support.
[2024-09-07] v0.30.4.3-preview1 Updated module behavior and related support.
[2024-09-07] v0.30.4.4-preview1 Updated module behavior and related support.
[2024-09-07] v0.30.5-preview1 Updated module behavior and related support.
[2024-09-07] v0.30.5.1-preview1 Updated module behavior and related support.
[2024-09-08] v0.30.5.2-preview1 Updated module behavior and related support.
[2024-09-10] v0.30.6-preview1 upgrade the cache foundation libraries
[2024-10-09] v0.30.8-preview1 Updated module behavior and related support.
[2024-10-16] v0.30.9-preview1 Updated module behavior and related support.
[2024-11-04] v0.31.0-preview1 Updated module behavior and related support.
[2024-11-08] v0.31.1-preview1 upgrade Senparc.AI
[2024-11-15] v0.32.0-preview1 Updated module behavior and related support.
[2024-11-21] v0.33.2-preview1 Updated module behavior and related support.
[2024-11-28] v0.33.3-preview1 update CO2NET, use new SenparcSetting with UseLowerCaseApiName property
[2024-12-27] v0.33.4-preview1 Add exception log for UseXncfModules() auto progress
[2025-01-09] v0.34.0-preview1 reconstruction XncfBuilder for generate XNCF
[2025-01-25] v0.34.3-preview1 Update Agents functions, support for function calling
[2025-01-28] v0.34.4-preview1 update Senparc.AI
[2025-02-06] v0.34.5-preview1 update NeuCharAI model update
[2025-04-29] v0.34.7-preview1 Update CO2NET and AIKernel
[2025-05-18] v0.34.8-preview1 Update Installation
[2025-05-20] v0.35.0-preview.1 Update AI powered XNCF Builder
[2025-05-21] v0.35.0-preview.2 Fix XNCF Builder Function display problem
[2025-05-22] v0.35.0-preview.3 XNCF Builder improve CMD command progress
[2025-05-22] v0.35.0-preview.3.1 XNCF Builder improve AI code generation
[2025-06-26] v0.35.2-preview.9 Finish new AI code generation template
[2025-06-27] v0.35.3-preview.9 Add dynamic XNCF Template dynamic generator
[2025-06-28] v0.35.3-preview.10 Add dynamic XNCF Template dynamic generator, support for dotnet CLI and Visual Studio together
[2025-11-01] update basic libraries, including Senparc.AI
[2026-01-07] v0.35.6-preview.1 Add NcfSourcePackage project path to DatabaseMigrationRequest loading method
[2026-04-24] Simplify FunctionRender request parameters and keep SelectionList UI metadata compatibility
[2026-07-02] v0.36.2-preview1 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
3. Updated module behavior and related support.
4. Updated module behavior and related support.
[2026-07-05] v0.36.3-preview2 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-07-05] v0.36.4-preview3 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-07-07] v0.36.5-preview4 Dependency updates from upstream modules
1. Dependency update from Senparc.Xncf.AIKernel to 0.13.5-preview4
2. Dependency update from Senparc.Xncf.PromptRange to 0.16.5-preview4
3. Updated module behavior and related support.
[2026-07-17] v0.37.0-preview5 Updated module behavior and related support.
1. integrateshared resource-localization mechanism, supportmodulefeature textdisplay dynamically according to the current culture
2. Updated module behavior and related support.
3. Updated module behavior and related support.
4. Updated module behavior and related support.
5. Updated module behavior and related support.
6. Updated module behavior and related support.
7. Updated module behavior and related support.
[2026-07-29] v0.37.1-preview6 Updated module behavior and related support.
1. Updated module behavior and related support.
[2026-07-31] v0.38.0-preview7 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-08-04] v0.39.0-preview8 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
3. Updated module behavior and related support.
4. Updated module behavior and related support.
5. Updated module behavior and related support.
6. Updated module behavior and related support.
[2026-08-08] v0.39.1-preview9 Dependency updates from upstream projects
1. Dependency update from Senparc.Ncf.DatabasePlant to 0.21.6-preview6
2. Dependency update from Senparc.Ncf.XncfBase to 0.24.1-preview6
3. Dependency update from Senparc.Xncf.XncfBuilder.Abstractions to 0.1.3-preview4
4. Dependency update from Senparc.Xncf.AIKernel to 0.15.2-preview9
5. Dependency update from Senparc.Xncf.MCP to 0.4.4-preview7
6. Dependency update from Senparc.Xncf.PromptRange to 0.19.1-preview9
7. Dependency update from Senparc.Xncf.XncfModuleManager to 0.15.4-preview6
[2026-08-13] v0.40.0-preview10 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-08-15] v0.41.0 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
3. Updated module behavior and related support.
4. Dependency update from Senparc.Xncf.AIKernel to 0.15.4
5. Dependency update from Senparc.Xncf.MCP to 0.5.1
6. Dependency update from Senparc.Xncf.Sandbox.Abstractions to 0.2.0
7. Updated module behavior and related support.
[2026-08-29] v0.41.1 Dependency updates from Senparc.Ncf.DatabasePlant to 0.21.10; Dependency update from Senparc.Ncf.XncfBase to 0.26.1
1. Dependency update from Senparc.Ncf.DatabasePlant to 0.21.10
2. Dependency update from Senparc.Ncf.XncfBase to 0.26.1
[2026-09-15] v0.41.2 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-09-16] v0.41.3 Dependency updates from Senparc.Ncf.XncfBase.Tests to 0.0.14; Senparc.IntegrationSample to 0.0.13; Senparc.Xncf.AIAgentsHub.Tests to 0.0.13; Senparc.Xncf.AgentsManager to 0.17.2; Senparc.Web to 0.39.1; Senparc.Xncf.Installer to 0.5.7
[2026-09-17] v0.41.4 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-10-05] v0.41.5 Merge remote-tracking branch 'origin/Developer-MAF-V3' into Developer-MAF-V3-Spark
1. Updated Senparc.Xncf.XncfBuilder project behavior and integration for the latest feature and reliability improvements.
2. chore: update package versions and dependencies across multiple projects
[2026-10-09] v0.41.6 Dependency update from Senparc.Xncf.AIKernel to 0.16.4
v0.1.0 initial release
v0.8.127 Updated module behavior and related support.
v0.13.3 add Oracle database Migration support
v0.13.4.1 Updated module behavior and related support.
v0.13.6 update XncfBuilder, adapt .NET 7.0 CLI
v0.13.9 Updated module behavior and related support.
v0.13.10 Updated module behavior and related support.
V0.14.0 netstandard2.1 , netcoreapp3.1;net6.0
v0.15.0 Updated module behavior and related support.
v0.16.0 Updated module behavior and related support.
v0.16.2.1024 Updated module behavior and related support.
v0.17.0 Updated module behavior and related support.
v0.17.1 Updated module behavior and related support.
v0.18.0 Updated module behavior and related support.
v0.19.0 improveprojectreference
v0.20.0 updateprojectreference, support .NET 8.0
v0.21.0 Updated module behavior and related support.
v0.24.0 Updated module behavior and related support.
v0.24.1 Updated module behavior and related support.
[2026-11-03] v0.41.7 adapt Senparc.AI.AgentKernel 0.1.15-preview2
1. Updated module behavior and related support.
2. Updated module behavior and related support.
3. Updated module behavior and related support.
4. Dependency update from Senparc.Xncf.Sandbox.Abstractions to 0.3.1
5. Dependency update from Senparc.Xncf.XncfBuilder.Abstractions to 0.1.5-preview6
[2026-11-03] v0.41.8 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Dependency update from Senparc.Ncf.XncfBase to 0.28.2
3. Dependency update from Senparc.Xncf.AIKernel to 0.17.2
4. Dependency update from Senparc.Xncf.MCP to 0.5.12
5. Dependency update from Senparc.Xncf.PromptRange to 0.20.14
6. Dependency update from Senparc.Xncf.XncfModuleManager to 0.15.12
[2026-11-11] v0.41.8 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-11-12] v0.41.9 Updated module behavior and related support.
1. Updated module behavior and related support.
2. Updated module behavior and related support.
[2026-11-19] v0.41.10 Localized XNCF Builder tools and template surfaces
1. Updated localized labels, resource fallbacks, and user-facing messages across affected surfaces.
2. Kept runtime behavior and module integration aligned with the affected service and registration changes.