| File: BackEnd\Components\RequestBuilder\ITargetBuilder.cs | Web Access |
| Project: src\msbuild\src\Build\Microsoft.Build.csproj (Microsoft.Build) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Threading; using System.Threading.Tasks; using Microsoft.Build.BackEnd.Logging; using Microsoft.Build.Framework; using BuildResult = Microsoft.Build.Execution.BuildResult; #nullable disable namespace Microsoft.Build.BackEnd { /// <summary> /// Represents an object which can build targets for a project. /// </summary> internal interface ITargetBuilder { /// <summary> /// Builds the specified targets. /// </summary> /// <param name="projectLoggingContext">The logging context for the project.</param> /// <param name="entry">The BuildRequestEntry for which we are building targets.</param> /// <param name="callback">The callback to be used to handle new project build requests.</param> /// <param name="targets">The targets to build.</param> /// <param name="baseLookup">The Lookup containing all current items and properties for this target.</param> /// <param name="cancellationToken">The cancellation token used to cancel processing of targets.</param> /// <returns>A Task representing the work to be done.</returns> Task<BuildResult> BuildTargets(ProjectLoggingContext projectLoggingContext, BuildRequestEntry entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targets, Lookup baseLookup, CancellationToken cancellationToken); } }