2 interfaces inheriting from ITask
Microsoft.Build.Framework (2)
ICancelableTask.cs (1)
11public interface ICancelableTask : ITask
IGeneratedTask.cs (1)
13public interface IGeneratedTask : ITask
16 implementations of ITask
installer.tasks (1)
BuildTask.cs (1)
9public abstract partial class BuildTask : ITask
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\IntrinsicTasks\CallTarget.cs (1)
22internal class CallTarget : ITask
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
23internal class MSBuild : ITask
Microsoft.Build.Engine.UnitTests (2)
MockTask.cs (1)
380internal sealed class MockTask : MockTaskBase, ITask
TaskThatReturnsMinimalItem.cs (1)
14public sealed class TaskThatReturnsMinimalItem : ITask
Microsoft.Build.Utilities.Core (2)
AppDomainIsolatedTask.cs (1)
22public abstract class AppDomainIsolatedTask : MarshalByRefObject, ITask
Task.cs (1)
15public abstract class Task : ITask
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
TestDoubles\StubTask.cs (1)
9public class StubTask : ITask
Microsoft.DotNet.Build.Tasks.Installers (1)
src\Common\Internal\BuildTask.cs (1)
12public abstract partial class BuildTask : ITask
Microsoft.DotNet.Build.Tasks.Packaging (1)
src\Common\Internal\BuildTask.cs (1)
12public abstract partial class BuildTask : ITask
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
src\Common\Internal\BuildTask.cs (1)
12public abstract partial class BuildTask : ITask
Microsoft.DotNet.Build.Tasks.Workloads (1)
src\Common\Internal\BuildTask.cs (1)
12public abstract partial class BuildTask : ITask
Microsoft.DotNet.GenAPI (1)
src\Common\Internal\BuildTask.cs (1)
12public abstract partial class BuildTask : ITask
Microsoft.DotNet.GenFacades (1)
src\Common\Internal\BuildTask.cs (1)
12public abstract partial class BuildTask : ITask
Microsoft.DotNet.PackageTesting (1)
src\Common\Internal\BuildTask.cs (1)
12public abstract partial class BuildTask : ITask
Microsoft.DotNet.SharedFramework.Sdk (1)
src\Common\Internal\BuildTask.cs (1)
12public abstract partial class BuildTask : ITask
83 references to ITask
Microsoft.Build (20)
BackEnd\Components\RequestBuilder\IntrinsicTasks\IntrinsicTaskFactory.cs (2)
76public ITask CreateTask(IBuildEngine taskFactoryLoggingHost) 94public void CleanupTask(ITask task)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (4)
208internal ITask TaskInstance { get; private set; } 643ITask currentInstance = TaskInstance; 935private ITask InstantiateTask(IDictionary<string, string> taskIdentityParameters) 937ITask task = null;
BuildEnvironmentHelper.cs (1)
398var frameworkAssembly = typeof(Framework.ITask).Assembly;
Instance\TaskFactories\AssemblyTaskFactory.cs (5)
165public ITask CreateTask(IBuildEngine taskFactoryLoggingHost) 188public ITask CreateTask(IBuildEngine taskFactoryLoggingHost, IDictionary<string, string> taskIdentityParameters) 203public void CleanupTask(ITask task) 316internal ITask CreateTaskInstance(ElementLocation taskLocation, TaskLoggingContext taskLoggingContext, IBuildComponentHost buildComponentHost, IDictionary<string, string> taskIdentityParameters, 382ITask taskInstance = TaskLoader.CreateTask(
Instance\TaskFactoryWrapper.cs (2)
198internal void SetPropertyValue(ITask task, TaskPropertyInfo property, object value) 218internal object? GetPropertyValue(ITask task, TaskPropertyInfo property)
PrintLineDebugger.cs (1)
26var commonWriterType = typeof(ITask).Assembly.GetType("Microsoft.Build.Shared.Debugging.CommonWriter", true, false);
TaskLoader.cs (2)
45internal static ITask CreateTask( 129return (ITask)Activator.CreateInstance(loadedType.Type);
TaskLoggingHelper.cs (2)
49public TaskLoggingHelper(ITask taskInstance) 82private readonly ITask _taskInstance;
TaskLoggingHelperExtension.cs (1)
40public TaskLoggingHelperExtension(ITask taskInstance, ResourceManager primaryResources, ResourceManager sharedResources, string helpKeywordPrefix) :
Microsoft.Build.BuildCheck.UnitTests (1)
TestAssemblyInfo.cs (1)
39var frameworkAssembly = typeof(Microsoft.Build.Framework.ITask).Assembly;
Microsoft.Build.CommandLine.UnitTests (1)
TestAssemblyInfo.cs (1)
39var frameworkAssembly = typeof(Microsoft.Build.Framework.ITask).Assembly;
Microsoft.Build.Engine.OM.UnitTests (3)
BuildEnvironmentHelper.cs (1)
398var frameworkAssembly = typeof(Framework.ITask).Assembly;
PrintLineDebugger.cs (1)
26var commonWriterType = typeof(ITask).Assembly.GetType("Microsoft.Build.Shared.Debugging.CommonWriter", true, false);
TestAssemblyInfo.cs (1)
39var frameworkAssembly = typeof(Microsoft.Build.Framework.ITask).Assembly;
Microsoft.Build.Engine.UnitTests (18)
BackEnd\AssemblyTaskFactory_Tests.cs (13)
245ITask createdTask = null; 272ITask createdTask = null; 303ITask createdTask = null; 334ITask createdTask = null; 367ITask createdTask = null; 400ITask createdTask = null; 435ITask createdTask = null; 468ITask createdTask = null; 499ITask createdTask = null; 534ITask createdTask = null; 563ITask createdTask = null; 596ITask createdTask = null; 629ITask createdTask = null;
BackEnd\TaskBuilderTestTask.cs (2)
1323public ITask CreateTask(IBuildEngine loggingHost) 1333public void CleanupTask(ITask task)
BackEnd\TaskRegistry_Tests.cs (2)
2342public ITask CreateTask(IBuildEngine taskFactoryLoggingHost) => null; 2344public void CleanupTask(ITask task) { }
TestAssemblyInfo.cs (1)
39var frameworkAssembly = typeof(Microsoft.Build.Framework.ITask).Assembly;
Microsoft.Build.Framework (4)
ICancelableTask.cs (1)
17/// Cancel() may be called at any time after the task has been instantiated, even before <see cref="ITask.Execute()"/> is called.
ITaskFactory.cs (2)
59ITask CreateTask(IBuildEngine taskFactoryLoggingHost); 70void CleanupTask(ITask task);
ITaskFactory2.cs (1)
61ITask CreateTask(IBuildEngine taskFactoryLoggingHost, IDictionary<string, string> taskIdentityParameters);
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
39var frameworkAssembly = typeof(Microsoft.Build.Framework.ITask).Assembly;
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
TargetTests.cs (2)
1010public void CleanupTask(ITask task) { } 1012public ITask CreateTask(IBuildEngine taskFactoryLoggingHost) => new DummyTask();
Microsoft.Build.Tasks.Core (11)
BuildEnvironmentHelper.cs (1)
398var frameworkAssembly = typeof(Framework.ITask).Assembly;
CodeTaskFactory.cs (2)
1049public ITask CreateTask(IBuildEngine taskFactoryLoggingHost) 1054public void CleanupTask(ITask task)
PrintLineDebugger.cs (1)
26var commonWriterType = typeof(ITask).Assembly.GetType("Microsoft.Build.Shared.Debugging.CommonWriter", true, false);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (4)
122/// <inheritdoc cref="ITaskFactory.CleanupTask(ITask)"/> 123public void CleanupTask(ITask task) 132public ITask CreateTask(IBuildEngine taskFactoryLoggingHost) 136return Activator.CreateInstance(TaskType) as ITask;
TaskLoggingHelperExtension.cs (1)
40public TaskLoggingHelperExtension(ITask taskInstance, ResourceManager primaryResources, ResourceManager sharedResources, string helpKeywordPrefix) :
XamlTaskFactory\XamlTaskFactory.cs (2)
266public ITask CreateTask(IBuildEngine taskFactoryLoggingHost) 271public void CleanupTask(ITask task)
Microsoft.Build.Tasks.UnitTests (1)
TestAssemblyInfo.cs (1)
39var frameworkAssembly = typeof(Microsoft.Build.Framework.ITask).Assembly;
Microsoft.Build.Utilities.Core (4)
BuildEnvironmentHelper.cs (1)
398var frameworkAssembly = typeof(Framework.ITask).Assembly;
PrintLineDebugger.cs (1)
26var commonWriterType = typeof(ITask).Assembly.GetType("Microsoft.Build.Shared.Debugging.CommonWriter", true, false);
TaskLoggingHelper.cs (2)
49public TaskLoggingHelper(ITask taskInstance) 82private readonly ITask _taskInstance;
Microsoft.Build.Utilities.UnitTests (1)
TestAssemblyInfo.cs (1)
39var frameworkAssembly = typeof(Microsoft.Build.Framework.ITask).Assembly;
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
GenerateNuSpecAndPackTests.cs (1)
57private bool Execute(ITask task)
MSBuild (7)
BuildEnvironmentHelper.cs (1)
398var frameworkAssembly = typeof(Framework.ITask).Assembly;
OutOfProcTaskAppDomainWrapper.cs (1)
30var wrappedTask = WrappedTask;
OutOfProcTaskAppDomainWrapperBase.cs (2)
31private ITask wrappedTask; 60public ITask WrappedTask
PrintLineDebugger.cs (1)
26var commonWriterType = typeof(ITask).Assembly.GetType("Microsoft.Build.Shared.Debugging.CommonWriter", true, false);
TaskLoader.cs (2)
45internal static ITask CreateTask( 129return (ITask)Activator.CreateInstance(loadedType.Type);
MSBuildTaskHost (8)
BuildEnvironmentHelper.cs (1)
398var frameworkAssembly = typeof(Framework.ITask).Assembly;
OutOfProcTaskAppDomainWrapperBase.cs (2)
31private ITask wrappedTask; 60public ITask WrappedTask
TaskLoader.cs (5)
45internal static ITask CreateTask( 67ITask taskInstanceInOtherAppDomain = null; 129return (ITask)Activator.CreateInstance(loadedType.Type); 135taskInstanceInOtherAppDomain = (ITask)taskAppDomain.CreateInstanceFromAndUnwrap(loadedType.Assembly.AssemblyFile, loadedType.Type.FullName); 158taskInstanceInOtherAppDomain = (ITask)taskAppDomain.CreateInstanceAndUnwrap(loadedType.Type.GetTypeInfo().Assembly.FullName, loadedType.Type.FullName);