Task Factory. Cleanup Task(ITask) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Cleans up any context or state that may have been built up for a given task.
public: virtual void CleanupTask(Microsoft::Build::Framework::ITask ^ task);
public void CleanupTask (Microsoft.Build.Framework.ITask task);
abstract member CleanupTask : Microsoft.Build.Framework.ITask -> unit override this.CleanupTask : Microsoft.Build.Framework.ITask -> unit
Public Sub CleanupTask (task As ITask)
The task to clean up.
For many factories, this method is a no-op. But some factories may have built up an AppDomain as part of an individual task instance, and this is their opportunity to shutdown the AppDomain.