File: TargetBuiltReason.cs
Web Access
Project: ..\..\..\src\Framework\Microsoft.Build.Framework.csproj (Microsoft.Build.Framework)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
#nullable disable
 
namespace Microsoft.Build.Framework
{
    /// <summary>
    /// The reason that a target was built by its parent target.
    /// </summary>
    public enum TargetBuiltReason
    {
        /// <summary>
        /// This wasn't built on because of a parent.
        /// </summary>
        None,
 
        /// <summary>
        /// The target was part of the parent's BeforeTargets list.
        /// </summary>
        BeforeTargets,
 
        /// <summary>
        /// The target was part of the parent's DependsOn list.
        /// </summary>
        DependsOn,
 
        /// <summary>
        /// The target was part of the parent's AfterTargets list.
        /// </summary>
        AfterTargets,
 
        /// <summary>
        /// The target was defined as an initial target of the project.
        /// </summary>
        InitialTargets,
 
        /// <summary>
        /// The target was one of the default targets of the project.
        /// </summary>
        DefaultTargets,
 
        /// <summary>
        /// The target was one of the targets explicitly called to be built.
        /// </summary>
        EntryTargets,
    }
}