BaseTask Class

Summary

Defines the base class for implementations of an MsBuild task.
graph TD Base0["Task"]-->Type Type["BaseTask"] class Type type-node Type-->Derived0["CopyFilesFromNuGetPackages"] click Derived0 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.FileSystem/CopyFilesFromNuGetPackages" Type-->Derived1["IsInCollection"] click Derived1 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Groups/IsInCollection" Type-->Derived2["Zip"] click Derived2 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Packaging/Zip" Type-->Derived3["WebDelete"] click Derived3 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Web/WebDelete" Type-->Derived4["WebUpload"] click Derived4 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Web/WebUpload" Type-->Derived5["Unzip"] click Derived5 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Packaging/Unzip" Type-->Derived6["GatherNuGetDependenciesForProject"] click Derived6 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Packaging/GatherNuGetDependenciesForProject" Type-->Derived7["GetVcsInfoFromFile"] click Derived7 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.VersionControl/GetVcsInfoFromFile" Type-->Derived8["WebDownload"] click Derived8 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Web/WebDownload" Type-->Derived9["ReportGeneratorOutputToCsv"] click Derived9 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Testing/ReportGeneratorOutputToCsv" Type-->Derived10["CommandLineToolTask"] click Derived10 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/CommandLineToolTask" Type-->Derived11["GetProjectsFromVisualStudioSolution"] click Derived11 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Code/GetProjectsFromVisualStudioSolution" Type-->Derived12["FindAndReplaceInText"] click Derived12 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Templating/FindAndReplaceInText" Type-->Derived13["ValidateXmlAgainstSchema"] click Derived13 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Validation/ValidateXmlAgainstSchema" Type-->Derived14["InvokeSteps"] click Derived14 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Script/InvokeSteps" Type-->Derived15["GetFileVersion"] click Derived15 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Versions/GetFileVersion" Type-->Derived16["LastItemInGroup"] click Derived16 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Groups/LastItemInGroup" Type-->Derived17["UpdateAttributeInCode"] click Derived17 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Code/UpdateAttributeInCode" Type-->Derived18["SearchPackagesDirectoryForToolPath"] click Derived18 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.FileSystem/SearchPackagesDirectoryForToolPath" Type-->Derived19["FindAndReplaceInFile"] click Derived19 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Templating/FindAndReplaceInFile" Type-->Derived20["GetSemanticVersionFromFile"] click Derived20 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Versions/GetSemanticVersionFromFile" Type-->Derived21["GetIssuesForGitHubMilestone"] click Derived21 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Projects/GetIssuesForGitHubMilestone" Type-->Derived22["FileHashTask"] click Derived22 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.FileSystem/FileHashTask" Type-->Derived23["SortFilesByDirectory"] click Derived23 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.FileSystem/SortFilesByDirectory" Type-->Derived24["GenerateSpecialParameterTemplateTokens"] click Derived24 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Templating/GenerateSpecialParameterTemplateTokens" Type-->Derived25["ReadHashesFromFile"] click Derived25 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.FileSystem/ReadHashesFromFile" Type-->Derived26["SetEnvironmentVariable"] click Derived26 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks/SetEnvironmentVariable" Type-->Derived27["HtmlEncodeText"] click Derived27 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks/HtmlEncodeText" Type-->Derived28["SortItemGroupByKey"] click Derived28 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.FileSystem/SortItemGroupByKey" Type-->Derived29["TemplateText"] click Derived29 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Templating/TemplateText" Type-->Derived30["SearchPackagesDirectoryForToolDirectory"] click Derived30 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.FileSystem/SearchPackagesDirectoryForToolDirectory" Type-->Derived31["SearchPackagesDirectoryForNuGetPackage"] click Derived31 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.FileSystem/SearchPackagesDirectoryForNuGetPackage" Type-->Derived32["GenerateTargetsFile"] click Derived32 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks/GenerateTargetsFile" Type-->Derived33["TemplateFile"] click Derived33 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Templating/TemplateFile" Type-->Derived34["AddOrUpdateAttributeInCode"] click Derived34 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Code/AddOrUpdateAttributeInCode"

Syntax

public abstract class BaseTask : Task

Properties

Name Value Summary
ErrorInformation ITaskItem[]
Gets or sets the collection containing the error codes for the task.

Methods

Name Value Summary
ErrorCodeById(string) string
Returns the error code for the given ID.
GetAbsolutePath(ITaskItem) string
Returns the absolute path for the given path item.
GetAbsolutePath(ITaskItem, ITaskItem) string
Returns the absolute path for the given path item.
GetAbsolutePath(string) string
Returns the absolute path for the given path item.
VerbosityForCurrentMsBuildInstance() string
Gets the verbosity that the current MsBuild instance is running at.
static