Skip to content
Project referenceDevelopmentEngine ccf7d03f
Authored
  • Leased Task bootstrap, immutable runtime publication and private process loading.

Leased Task bootstrap, immutable runtime publication and private process loading.

Read the linked task or ownership explanation before using the exact API below.

Bootstrap without loading the full Task implementation

Section titled “Bootstrap without loading the full Task implementation”

Task-host isolation explains Foundation bootstrapping, restore/compile identities, actual UsingTask registration, owned output, node yielding, publication and retirement. This library depends on Core IO, neutral Toolchains and MSBuild contracts, not BGCS, a concrete backend/platform or the full Tasks assembly.

BuildTaskRuntimeTask coordinates complete runtime compilation with the shared workspace lease and validates actual files before publication. RestoreOwnedProjectTask restores an explicitly selected closure with its own project metadata, not inherited solution-wide entry points. PublishTaskHostTask accepts the actual hashed runtime set and publishes a verified assembly for the requested private load owner.

MaterializeBindingsTask validates selected generation content under protection, atomically copies the one Compile source into the SDK intermediate owner, and preserves unchanged timestamps. RegisterTaskPublisherTask verifies and registers the actual publisher and bootstrap directories, including materialization-only builds.

Product projects consume the existing build/msbuild/Inno.Build.Tasks.targets integration rather than copying a second bootstrap recipe. The tool’s RuntimeIdentifier follows the selected SDK host, not the published game’s RID.

A Build registry retains only neutral immutable metadata. Request/output changes, failure and cancellation invalidate reuse. Waiting releases the MSBuild node; cancellation drains work and reacquisition still releases acquired resources on failure. Process ownership protects every dependency still needed after a Task returns. Unknown process status preserves outputs rather than authorizing deletion. Private loading and ordinary SDK compilation never become the same writable owner.

The source project defines the selected host declarations. Script projection and platform execution require their separate evidence.

Browse types and members.

Project: Inno.Build.TaskHosting
Source: build/tasks/Inno.Build.TaskHosting/Inno.Build.TaskHosting.csproj

Type API Description
BuildTaskRuntimeTask engine Coordinates shared task-runtime compilation before immutable publication and private loading.
MaterializeBindingsTask engine Copies one protected generated source into the consuming SDK build’s own intermediate directory.
PublishTaskHostTask engine Publishes one immutable task runtime per content identity before a build loads its private closure. This bootstrap depends only on filesystem primitives and never loads the task runtime being built.
RegisterTaskPublisherTask engine Registers the lightweight publisher’s process owner before any task uses its private load directory.
RestoreOwnedProjectTask engine Coordinates SDK restore writes for explicitly selected project closures. Parent solution entry points are excluded from these owned restores.
TaskRuntimeBootstrapOwner engine Claims bootstrap storage before SDK compilation without depending on the full task runtime.