Lingua

BuiltInTasks Class

Definition

Pre-registers the commonly used built-in MSBuild tasks with the host task registry so they run with no assembly loading or reflection - the path required in a trimmed or Native AOT host.

public ref class BuiltInTasks abstract sealed
public static class BuiltInTasks
type BuiltInTasks = class
Public Class BuiltInTasks
Inheritance
BuiltInTasks

Remarks

The MSBuild engine (Microsoft.Build) cannot reference this task assembly (Microsoft.Build.Tasks.Core), so these registrations are published from here. A host that runs the engine in-process under trimming/AOT calls RegisterAll() once at startup, before its first build, after which a stock build can run these tasks with the reflective task-execution path disabled. Each registration roots the task type's public constructor and properties for trimming, so construction and parameter binding stay trim-safe.

Methods

Name Description
RegisterAll()

Registers the commonly used built-in tasks with the host task registry.

Applies to