File: BuildTask.cs
Web Access
Project: src\src\tasks\installer.tasks\installer.tasks.csproj (installer.tasks)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
 
namespace Microsoft.DotNet.Build.Tasks
{
    public abstract partial class BuildTask : ITask
    {
        private TaskLoggingHelper _log = null;
 
        internal TaskLoggingHelper Log
        {
            get { return _log ??= new TaskLoggingHelper(this); }
        }
 
        public BuildTask()
        {
        }
 
        public IBuildEngine BuildEngine
        {
            get;
            set;
        }
 
        public ITaskHost HostObject
        {
            get;
            set;
        }
 
        public abstract bool Execute();
    }
}