SetupContext Class

Summary

Acts as a context providing info about the overall build following its completion.
Namespace
Cake.Core
Interfaces
Base Types
graph BT Type-->Base0["CakeContextAdapter"] click Base0 "/api/Cake.Core/CakeContextAdapter" Base0-->Base1["object"] Type-.->Interface0["ISetupContext"] click Interface0 "/api/Cake.Core/ISetupContext" Type-.->Interface1["ICakeContext"] click Interface1 "/api/Cake.Core/ICakeContext" Type["SetupContext"] class Type type-node

Syntax

public sealed class SetupContext : CakeContextAdapter, ISetupContext, ICakeContext

Constructors

Name Summary
SetupContext(ICakeContext, ICakeTaskInfo, IEnumerable<ICakeTaskInfo>) Initializes a new instance of the SetupContext class.

Properties

Name Value Summary
Arguments ICakeArguments
Gets the arguments.
Inherited from CakeContextAdapter
Configuration ICakeConfiguration
Gets the cake configuration.
Inherited from CakeContextAdapter
Data ICakeDataResolver
Gets the data context resolver.
Inherited from CakeContextAdapter
Environment ICakeEnvironment
Gets the environment.
Inherited from CakeContextAdapter
FileSystem IFileSystem
Gets the file system.
Inherited from CakeContextAdapter
Globber IGlobber
Gets the globber.
Inherited from CakeContextAdapter
Log ICakeLog
Gets the log.
Inherited from CakeContextAdapter
ProcessRunner IProcessRunner
Gets the process runner.
Inherited from CakeContextAdapter
Registry IRegistry
Gets the registry.
Inherited from CakeContextAdapter
TargetTask ICakeTaskInfo
Gets target (initiating) task.
TasksToExecute IReadOnlyCollection<ICakeTaskInfo>
Gets all registered tasks that are going to be executed.
Tools IToolLocator
Gets the tool locator.
Inherited from CakeContextAdapter

Extension Methods

Name Value Summary
AppVeyor() IAppVeyorProvider
Gets a AppVeyorProvider instance that can be used to manipulate the AppVeyor environment.
Argument<T>(string, T) T
Gets an argument and returns the provided defaultValue if the argument is missing.
Argument<T>(string) T
Gets an argument and throws if the argument is missing.
Arguments() IDictionary<string, ICollection<string>>
Retrieves all command line arguments.
Arguments<T>(string, Func<ICakeContext, ICollection<T>>) ICollection<T>
Gets all arguments with the specific name, evaluates and returns the provided defaultValues if the argument is missing.
Arguments<T>(string, ICollection<T>) ICollection<T>
Gets all arguments with the specific name and returns the provided defaultValues if the argument is missing.
Arguments<T>(string, T) ICollection<T>
Gets all arguments with the specific name and returns the provided defaultValue if the argument is missing.
Arguments<T>(string) ICollection<T>
Gets all arguments with the specific name and throws if the argument is missing.
AzurePipelines() IAzurePipelinesProvider
Gets a AzurePipelinesProvider instance that can be used to obtain information from the Azure Pipelines environment.
Bamboo() IBambooProvider
Gets a BambooProvider instance that can be used to manipulate the Bamboo environment.
BitbucketPipelines() IBitbucketPipelinesProvider
Gets a BitbucketPipelinesProvider instance that can be used to obtain information from the Bitbucket Pipelines environment.
Bitrise() IBitriseProvider
Gets a BitriseProvider instance that can be used to obtain information from the Bitrise environment.
BuildSystem() BuildSystem
Gets a BuildSystem instance that can be used to query for information about the current build system.
CakeExecuteExpression(string, CakeSettings) void
Executes Cake expression out of process.
CakeExecuteExpression(string) void
Executes Cake expression out of process.
CakeExecuteScript(FilePath, CakeSettings) void
Executes cake script out of process.
CakeExecuteScript(FilePath) void
Executes cake script out of process.
CalculateDirectoryHash(DirectoryPath, IEnumerable<GlobPattern>, HashAlgorithm) DirectoryHash
Calculates the hash for a given directory.
CalculateDirectoryHash(DirectoryPath, IEnumerable<string>, HashAlgorithm) DirectoryHash
Calculates the hash for a given directory.
CalculateDirectoryHash(IEnumerable<GlobPattern>, DirectoryPath) DirectoryHash
Calculates the hash for a given directory using the default (SHA256) algorithm.
CalculateDirectoryHash(IEnumerable<string>, DirectoryPath) DirectoryHash
Calculates the hash for a given directory using the default (SHA256) algorithm.
CalculateFileHash(FilePath, HashAlgorithm) FileHash
Calculates the hash for a given file.
CalculateFileHash(FilePath) FileHash
Calculates the hash for a given file using the default (SHA256) algorithm.
ChocolateyAddSource(string, string, ChocolateySourcesSettings) void
Adds Chocolatey package source using the specified name, source & settings to global user config.
ChocolateyAddSource(string, string) void
Adds Chocolatey package source using the specified name &source to global user config.
ChocolateyApiKey(string, ChocolateyApiKeySettings) void
Sets the Api Key for a Chocolatey Source using the specified settings.
ChocolateyConfig(string, string, ChocolateyConfigSettings) void
Sets the config parameter using the specified settings.
ChocolateyDisableFeature(string, ChocolateyFeatureSettings) void
Disables a Chocolatey Feature using the specified name and settings.
ChocolateyDisableFeature(string) void
Disables a Chocolatey Feature using the specified name.
ChocolateyDisableSource(string, ChocolateySourcesSettings) void
Disables a Chocolatey Source using the specified name and settings.
ChocolateyDisableSource(string) void
Disables a Chocolatey Source using the specified name.
ChocolateyDownload(string, ChocolateyDownloadSettings) void
Downloads a Chocolatey package using the specified settings. Requires Chocolatey licensed edition. Features requiring Chocolatey for Business or a minimum version are documented in ChocolateyDownloadSettings.
ChocolateyDownload(string) void
Downloads a Chocolatey package to the current working directory. Requires Chocolatey licensed edition.
ChocolateyEnableFeature(string, ChocolateyFeatureSettings) void
Enables a Chocolatey Feature using the specified name and settings.
ChocolateyEnableFeature(string) void
Enables a Chocolatey Feature using the specified name.
ChocolateyEnableSource(string, ChocolateySourcesSettings) void
Enables a Chocolatey Source using the specified name and settings.
ChocolateyEnableSource(string) void
Enables a Chocolatey Source using the specified name.
ChocolateyExport(ChocolateyExportSettings) void
Exports the currently installed Chocolatey packages using the specified settings.
ChocolateyExport() void
Exports the currently installed Chocolatey packages to a packages.config file in the current working directory.
ChocolateyInstall(string, ChocolateyInstallSettings) void
Installs a Chocolatey package using the specified settings.
ChocolateyInstall(string) void
Installs a Chocolatey package.
ChocolateyInstallFromConfig(FilePath, ChocolateyInstallSettings) void
Installs Chocolatey packages using the specified package configuration and settings.
ChocolateyInstallFromConfig(FilePath) void
Installs Chocolatey packages using the specified package configuration.
ChocolateyNew(string, ChocolateyNewSettings) void
Generate package specification files for a new package using the specified settings.
ChocolateyNew(string) void
Generate package specification files for a new package using the default settings.
ChocolateyPack(ChocolateyPackSettings) void
Creates a Chocolatey package using the specified settings.
ChocolateyPack(FilePath, ChocolateyPackSettings) void
Creates a Chocolatey package using the specified Nuspec file.
ChocolateyPack(IEnumerable<FilePath>, ChocolateyPackSettings) void
Creates Chocolatey packages using the specified Nuspec files.
ChocolateyPin(string, ChocolateyPinSettings) void
Pins a Chocolatey package using the specified settings.
ChocolateyPush(FilePath, ChocolateyPushSettings) void
Pushes a Chocolatey package to a Chocolatey server and publishes it.
ChocolateyPush(IEnumerable<FilePath>, ChocolateyPushSettings) void
Pushes Chocolatey packages to a Chocolatey server and publishes them.
ChocolateyRemoveSource(string, ChocolateySourcesSettings) void
Removes Chocolatey package source using the specified name, source & settings from global user config.
ChocolateyRemoveSource(string) void
Removes Chocolatey package source using the specified name & source from global user config.
ChocolateyUninstall(IEnumerable<string>, ChocolateyUninstallSettings) void
Uninstalls Chocolatey packages using the specified settings.
ChocolateyUninstall(IEnumerable<string>) void
Uninstalls a Chocolatey package.
ChocolateyUninstall(string, ChocolateyUninstallSettings) void
Uninstalls a Chocolatey package using the specified settings.
ChocolateyUninstall(string) void
Uninstalls a Chocolatey package.
ChocolateyUpgrade(string, ChocolateyUpgradeSettings) void
Upgrades Chocolatey package using the specified settings.
ChocolateyUpgrade(string) void
Upgrades Chocolatey package.
CleanDirectories(GlobPattern, CleanDirectorySettings) void
Cleans the directories matching the specified pattern. Cleaning the directory will remove all its content but not the directory itself.
CleanDirectories(GlobPattern, Func<IFileSystemInfo, bool>, CleanDirectorySettings) void
Cleans the directories matching the specified pattern. Cleaning the directory will remove all its content but not the directory itself.
CleanDirectories(GlobPattern, Func<IFileSystemInfo, bool>) void
Cleans the directories matching the specified pattern. Cleaning the directory will remove all its content but not the directory itself.
CleanDirectories(GlobPattern) void
Cleans the directories matching the specified pattern. Cleaning the directory will remove all its content but not the directory itself.
CleanDirectories(IEnumerable<DirectoryPath>, CleanDirectorySettings) void
Cleans the specified directories. Cleaning a directory will remove all its content but not the directory itself.
CleanDirectories(IEnumerable<DirectoryPath>) void
Cleans the specified directories. Cleaning a directory will remove all its content but not the directory itself.
CleanDirectories(IEnumerable<string>, CleanDirectorySettings) void
Cleans the specified directories. Cleaning a directory will remove all its content but not the directory itself.
CleanDirectories(IEnumerable<string>) void
Cleans the specified directories. Cleaning a directory will remove all its content but not the directory itself.
CleanDirectory(DirectoryPath, CleanDirectorySettings) void
Cleans the specified directory.
CleanDirectory(DirectoryPath, Func<IFileSystemInfo, bool>, CleanDirectorySettings) void
Cleans the specified directory.
CleanDirectory(DirectoryPath, Func<IFileSystemInfo, bool>) void
Cleans the specified directory.
CleanDirectory(DirectoryPath) void
Cleans the specified directory.
Command(CommandSettings, ProcessArgumentBuilder) void
Executes a generic command based on arguments and settings.
Command(CommandSettings, string, ProcessArgumentBuilder) int
Executes a generic tool/process based on arguments, settings and redirects standard output.
Command(CommandSettings, string, string, ProcessArgumentBuilder) int
Executes a generic tool/process based on arguments and settings.
Command(ICollection<string>, ProcessArgumentBuilder, int, Func<CommandSettings, CommandSettings>) void
Executes a generic tool/process based on arguments and settings.
Command(ICollection<string>, string, ProcessArgumentBuilder, int, Func<CommandSettings, CommandSettings>) int
Executes a generic tool/process based on arguments, tool executable names and redirects standard output.
Command(ICollection<string>, string, string, ProcessArgumentBuilder, int, Func<CommandSettings, CommandSettings>) int
Executes a generic tool/process based on arguments, settings, redirects standard output and standard error.
ContinuaCI() IContinuaCIProvider
Gets a ContinuaCIProvider instance that can be used to manipulate the Continua CI environment.
CopyDirectory(DirectoryPath, DirectoryPath) void
Copies the contents of a directory, including subdirectories to the specified location.
CopyFile(FilePath, FilePath) void
Copies an existing file to a new file, providing the option to specify a new file name.
CopyFiles(GlobPattern, DirectoryPath, bool) void
Copies all files matching the provided pattern to a new location.
CopyFiles(GlobPattern, DirectoryPath) void
Copies all files matching the provided pattern to a new location.
CopyFiles(IEnumerable<FilePath>, DirectoryPath, bool) void
Copies existing files to a new location.
CopyFiles(IEnumerable<FilePath>, DirectoryPath) void
Copies existing files to a new location.
CopyFiles(IEnumerable<string>, DirectoryPath, bool) void
Copies existing files to a new location.
CopyFiles(IEnumerable<string>, DirectoryPath) void
Copies existing files to a new location.
CopyFileToDirectory(FilePath, DirectoryPath) void
Copies an existing file to a new location.
CreateAssemblyInfo(FilePath, AssemblyInfoSettings) void
Creates an assembly information file.
CreateDirectory(DirectoryPath) void
Creates the specified directory.
Debug(LogAction) void
Writes a debug message to the log using the specified log message action. Evaluation message only if verbosity same or more verbose.
Debug(object) void
Writes a debug message to the log using the specified value.
Debug(string, object[]) void
Writes a debug message to the log using the specified format information.
Debug(string) void
Writes a debug message to the log using the specified string value.
DeleteDirectories(IEnumerable<DirectoryPath>, DeleteDirectorySettings) void
Deletes the specified directories.
DeleteDirectories(IEnumerable<string>, DeleteDirectorySettings) void
Deletes the specified directories.
DeleteDirectory(DirectoryPath, DeleteDirectorySettings) void
Deletes the specified directory.
DeleteFile(FilePath) void
Deletes the specified file.
DeleteFiles(GlobPattern) void
Deletes the specified files.
DeleteFiles(IEnumerable<FilePath>) void
Deletes the specified files.
DiagnosticVerbosity() IDisposable
Sets the log verbosity to diagnostic and returns a disposable that restores the log verbosity on dispose.
Directory(string) ConvertableDirectoryPath
Gets a directory path from string.
DirectoryExists(DirectoryPath) bool
Determines whether the given path refers to an existing directory.
DotCoverAnalyse(Action<ICakeContext>, FilePath, DotCoverAnalyseSettings) void
Runs DotCover Analyse for the specified action and settings.
DotCoverCover(Action<ICakeContext>, FilePath, DotCoverCoverSettings) void
Runs DotCover Cover for the specified action and settings.
DotCoverMerge(IEnumerable<FilePath>, FilePath, DotCoverMergeSettings) void
Runs DotCover Merge for the specified action and settings.
DotCoverMerge(IEnumerable<FilePath>, FilePath) void
Runs DotCover Merge for the specified action and settings.
DotCoverReport(FilePath, FilePath, DotCoverReportSettings) void
Runs DotCover Report for the specified action and settings.
DotNetAddPackage(string, DotNetPackageAddSettings) void
Adds or updates a package reference in a project file.
DotNetAddPackage(string, string, DotNetPackageAddSettings) void
Adds or updates a package reference in a project file.
DotNetAddPackage(string, string) void
Adds or updates a package reference in a project file.
DotNetAddPackage(string) void
Adds or updates a package reference in a project file.
DotNetAddReference(IEnumerable<FilePath>, DotNetReferenceAddSettings) void
Adds project-to-project (P2P) references.
DotNetAddReference(IEnumerable<FilePath>) void
Adds project-to-project (P2P) references.
DotNetAddReference(string, IEnumerable<FilePath>, DotNetReferenceAddSettings) void
Adds project-to-project (P2P) references.
DotNetAddReference(string, IEnumerable<FilePath>) void
Adds project-to-project (P2P) references.
DotNetBuild(string, DotNetBuildSettings) void
Build all projects.
DotNetBuild(string) void
Build all projects.
DotNetBuildServerShutdown(DotNetBuildServerShutdownSettings) void
Shuts down build servers that are started from dotnet.
DotNetBuildServerShutdown() void
Shuts down build servers that are started from dotnet.
DotNetClean(string, DotNetCleanSettings) void
Cleans a project's output.
DotNetClean(string) void
Cleans a project's output.
DotNetExecute(FilePath, ProcessArgumentBuilder, DotNetExecuteSettings) void
Execute an assembly with arguments in the specific path with settings.
DotNetExecute(FilePath, ProcessArgumentBuilder) void
Execute an assembly with arguments in the specific path.
DotNetExecute(FilePath) void
Execute an assembly.
DotNetFormat(string, DotNetFormatSettings) void
Formats code to match editorconfig settings.
DotNetFormat(string) void
Formats code to match editorconfig settings.
DotNetFormatAnalyzers(string, DotNetFormatSettings) void
Format code to match editorconfig settings for analyzers.
DotNetFormatAnalyzers(string) void
Format code to match editorconfig settings for analyzers.
DotNetFormatStyle(string, DotNetFormatSettings) void
Format code to match editorconfig settings for code style.
DotNetFormatStyle(string) void
Format code to match editorconfig settings for code style.
DotNetFormatWhitespace(string, DotNetFormatSettings) void
Format code to match editorconfig settings for whitespace.
DotNetFormatWhitespace(string) void
Format code to match editorconfig settings for whitespace.
DotNetListPackage(string, DotNetPackageListSettings) DotNetPackageList
Lists the package references for a project or solution.
DotNetListPackage(string) DotNetPackageList
Lists the package references for a project or solution.
DotNetListPackage() DotNetPackageList
Lists the package references for a project or solution.
DotNetListReference(string, DotNetReferenceListSettings) IEnumerable<string>
Lists project-to-project references.
DotNetListReference(string) IEnumerable<string>
Lists project-to-project references.
DotNetListReference() IEnumerable<string>
Lists project-to-project references.
DotNetMSBuild(DotNetMSBuildSettings) void
Builds the specified targets in a project file found in the current working directory.
DotNetMSBuild(string, DotNetMSBuildSettings) void
Builds the specified targets in the project file.
DotNetMSBuild(string) void
Builds the specified targets in the project file.
DotNetMSBuild() void
Builds the specified targets in a project file found in the current working directory.
DotNetNuGetAddSource(string, DotNetNuGetSourceSettings) void
Add the specified NuGet source.
DotNetNuGetDelete(DotNetNuGetDeleteSettings) void
Deletes a package from a server using the specified settings.
DotNetNuGetDelete(string, DotNetNuGetDeleteSettings) void
Deletes a package from a server.
DotNetNuGetDelete(string, string, DotNetNuGetDeleteSettings) void
Deletes a package from a server using the specified settings.
DotNetNuGetDelete(string, string) void
Deletes a specific version of a package from nuget.org.
DotNetNuGetDelete(string) void
Deletes a package from nuget.org.
DotNetNuGetDelete() void
Delete a NuGet Package from a server.
DotNetNuGetDisableSource(string, DotNetNuGetSourceSettings) void
Disable the specified NuGet source.
DotNetNuGetDisableSource(string) void
Disable the specified NuGet source.
DotNetNuGetEnableSource(string, DotNetNuGetSourceSettings) void
Enable the specified NuGet source.
DotNetNuGetEnableSource(string) void
Enable the specified NuGet source.
DotNetNuGetHasSource(string, DotNetNuGetSourceSettings) bool
Determines whether the specified NuGet source exists.
DotNetNuGetHasSource(string) bool
Determines whether the specified NuGet source exists.
DotNetNuGetPush(FilePath, DotNetNuGetPushSettings) void
Pushes one or more packages to a server using the specified settings.
DotNetNuGetPush(FilePath) void
Pushes one or more packages to a server.
DotNetNuGetRemoveSource(string, DotNetNuGetSourceSettings) void
Remove the specified NuGet source.
DotNetNuGetRemoveSource(string) void
Remove the specified NuGet source.
DotNetNuGetUpdateSource(string, DotNetNuGetSourceSettings) void
Update the specified NuGet source.
DotNetPack(string, DotNetPackSettings) void
Package all projects.
DotNetPack(string) void
Package all projects.
DotNetPublish(string, DotNetPublishSettings) void
Publish all projects.
DotNetPublish(string) void
Publish all projects.
DotNetRemovePackage(string, string) void
Removes package reference from a project file.
DotNetRemovePackage(string) void
Removes package reference from a project file.
DotNetRemoveReference(IEnumerable<FilePath>, DotNetReferenceRemoveSettings) void
Removes project-to-project (P2P) references.
DotNetRemoveReference(IEnumerable<FilePath>) void
Removes project-to-project (P2P) references.
DotNetRemoveReference(string, IEnumerable<FilePath>, DotNetReferenceRemoveSettings) void
Removes project-to-project (P2P) references.
DotNetRemoveReference(string, IEnumerable<FilePath>) void
Removes project-to-project (P2P) references.
DotNetRestore(DotNetRestoreSettings) void
Restore all NuGet Packages with the settings.
DotNetRestore(string, DotNetRestoreSettings) void
Restore all NuGet Packages in the specified path with settings.
DotNetRestore(string) void
Restore all NuGet Packages in the specified path.
DotNetRestore() void
Restore all NuGet Packages.
DotNetRun(string, DotNetRunSettings) void
Run project with settings.
DotNetRun(string, ProcessArgumentBuilder, DotNetRunSettings) void
Run project with settings.
DotNetRun(string, ProcessArgumentBuilder) void
Run project with path and arguments.
DotNetRun(string) void
Run project.
DotNetRun() void
Run all projects.
DotNetSDKCheck() void
Lists the latest available version of the .NET SDK and .NET Runtime.
DotNetSearchPackage(DotNetPackageSearchSettings) IEnumerable<DotNetPackageSearchItem>
List packages on available from source using specified settings.
DotNetSearchPackage(string, DotNetPackageSearchSettings) IEnumerable<DotNetPackageSearchItem>
List packages on available from source using specified settings.
DotNetSearchPackage(string) IEnumerable<DotNetPackageSearchItem>
List packages on available from source using specified settings.
DotNetSlnAdd(FilePath, IEnumerable<FilePath>, DotNetSlnAddSettings) void
Adds one or more projects to the solution file.
DotNetSlnAdd(FilePath, IEnumerable<FilePath>) void
Adds one or more projects to the solution file.
DotNetSlnAdd(IEnumerable<FilePath>, DotNetSlnAddSettings) void
Adds one or more projects to the solution file.
DotNetSlnAdd(IEnumerable<FilePath>) void
Adds one or more projects to the solution file.
DotNetSlnList(FilePath, DotNetSlnListSettings) IEnumerable<string>
Lists all projects in a solution file.
DotNetSlnList(FilePath) IEnumerable<string>
Lists all projects in a solution file.
DotNetSlnList() IEnumerable<string>
Lists all projects in a solution file.
DotNetTest(string, DotNetTestSettings) void
Test project with settings.
DotNetTest(string, ProcessArgumentBuilder, DotNetTestSettings) void
Test project with settings.
DotNetTest(string) void
Test project with path.
DotNetTest() void
Test project.
DotNetTool(FilePath, string, ProcessArgumentBuilder, DotNetToolSettings) void
Execute an .NET Core Extensibility Tool.
DotNetTool(FilePath, string, ProcessArgumentBuilder) void
Execute an .NET Core Extensibility Tool.
DotNetTool(FilePath, string) void
Execute an .NET Core Extensibility Tool.
DotNetTool(string, DotNetToolSettings) void
Execute an .NET Core Extensibility Tool.
DotNetTool(string) void
Execute an .NET Core Extensibility Tool.
DotNetVSTest(GlobPattern, DotNetVSTestSettings) void
Test one or more projects specified by a path or glob pattern with settings using the VS Test host runner.
DotNetVSTest(GlobPattern) void
Test one or more projects specified by a path or glob pattern using the VS Test host runner.
DotNetVSTest(IEnumerable<FilePath>, DotNetVSTestSettings) void
Test one or more specified projects with settings using the VS Test host runner.
DotNetWorkloadInstall(IEnumerable<string>, DotNetWorkloadInstallSettings) void
Installs one or more optional workloads.
DotNetWorkloadInstall(IEnumerable<string>) void
Installs one or more optional workloads.
DotNetWorkloadInstall(string, DotNetWorkloadInstallSettings) void
Installs a specified optional workload.
DotNetWorkloadInstall(string) void
Installs a specified optional workload.
DotNetWorkloadList(DotNetWorkloadListSettings) IEnumerable<DotNetWorkloadListItem>
Lists all installed workloads.
DotNetWorkloadList() IEnumerable<DotNetWorkloadListItem>
Lists all installed workloads.
DotNetWorkloadRepair(DotNetWorkloadRepairSettings) void
Repairs all workloads installations.
DotNetWorkloadRepair() void
Repairs all workloads installations.
DotNetWorkloadRestore(string, DotNetWorkloadRestoreSettings) void
Installs workloads needed for a project or a solution.
DotNetWorkloadRestore(string) void
Installs workloads needed for a project or a solution.
DotNetWorkloadSearch(string, DotNetWorkloadSearchSettings) IEnumerable<DotNetWorkload>
Lists available workloads by specifying all or part of the workload ID.
DotNetWorkloadSearch(string) IEnumerable<DotNetWorkload>
Lists available workloads by specifying all or part of the workload ID.
DotNetWorkloadSearch() IEnumerable<DotNetWorkload>
Lists available workloads.
DotNetWorkloadUninstall(IEnumerable<string>) void
Uninstalls one or more workloads.
DotNetWorkloadUninstall(string) void
Uninstalls a specified workload.
DotNetWorkloadUpdate(DotNetWorkloadUpdateSettings) void
Updates all installed workloads to the newest available version.
DotNetWorkloadUpdate() void
Updates all installed workloads to the newest available version.
DownloadFile(string, DownloadFileSettings) FilePath
Downloads the specified resource over HTTP to a temporary file with specified settings.
DownloadFile(string, FilePath, DownloadFileSettings) void
Downloads the specified resource over HTTP to the specified output path and settings.
DownloadFile(string, FilePath) void
Downloads the specified resource over HTTP to the specified output path.
DownloadFile(string) FilePath
Downloads the specified resource over HTTP to a temporary file.
DownloadFile(Uri, DownloadFileSettings) FilePath
Downloads the specified resource over HTTP to a temporary file with specified settings.
DownloadFile(Uri, FilePath, DownloadFileSettings) void
Downloads the specified resource over HTTP to the specified output path.
DownloadFile(Uri) FilePath
Downloads the specified resource over HTTP to a temporary file.
Dump<SetupContext>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
DupFinder(FilePath, DupFinderSettings) void
Analyses the specified file with ReSharper's DupFinder using the specified settings. The file can either be a solution/project or a source file.
DupFinder(FilePath) void
Analyses the specified file with ReSharper's DupFinder. The file can either be a solution/project or a source file.
DupFinder(GlobPattern, DupFinderSettings) void
Analyses all files matching the specified pattern with ReSharper's DupFinder, using the specified settings.
DupFinder(GlobPattern) void
Analyses all files matching the specified pattern with ReSharper's DupFinder.
DupFinder(IEnumerable<FilePath>, DupFinderSettings) void
Analyses the specified projects with ReSharper's DupFinder using the specified settings. The files can either be solutions and projects or a source files.
DupFinder(IEnumerable<FilePath>) void
Analyses the specified projects with ReSharper's DupFinder. The files can either be solutions and projects or a source files.
DupFinderFromConfig(FilePath) void
Runs ReSharper's DupFinder using the provided config file.
EnsureDirectoryDoesNotExist(DirectoryPath, DeleteDirectorySettings) void
Deletes the specified directory if it exists.
EnsureDirectoryDoesNotExist(DirectoryPath, EnsureDirectoryDoesNotExistSettings) void
Deletes the specified directory if it exists.
EnsureDirectoryDoesNotExist(DirectoryPath) void
Deletes the specified directory and its contents if it exists.
EnsureDirectoryExists(DirectoryPath) void
Creates the specified directory if it does not exist.
EnvironmentVariable(string) string
Retrieves the value of the environment variable or null if the environment variable does not exist.
EnvironmentVariable<T>(string, T) T
Retrieves the value of the environment variable or defaultValue if the environment variable does not exist.
EnvironmentVariables() IDictionary<string, string>
Retrieves all environment variables.
Error(LogAction) void
Writes an error message to the log using the specified log message action. Evaluation message only if verbosity same or more verbose.
Error(object) void
Writes an error message to the log using the specified value.
Error(string, object[]) void
Writes an error message to the log using the specified format information.
Error(string) void
Writes an error message to the log using the specified string value.
ExpandEnvironmentVariables(DirectoryPath) DirectoryPath
Expands all environment variables in the provided DirectoryPath.
ExpandEnvironmentVariables(FilePath) FilePath
Expands all environment variables in the provided FilePath.
File(string) ConvertableFilePath
Gets a file path from string.
FileExists(FilePath) bool
Determines whether the given path refers to an existing file.
FileSize(FilePath) long
Gets the size of a file in bytes.
Fixie(GlobPattern, FixieSettings) void
Runs all Fixie tests in the assemblies matching the specified pattern, using the specified settings.
Fixie(GlobPattern) void
Runs all Fixie tests in the assemblies matching the specified pattern.
Fixie(IEnumerable<FilePath>, FixieSettings) void
Runs all Fixie tests in the specified assemblies, using the specified settings.
Fixie(IEnumerable<FilePath>) void
Runs all Fixie tests in the specified assemblies.
Fixie(IEnumerable<string>, FixieSettings) void
Runs all Fixie tests in the specified assemblies, using the specified settings.
Fixie(IEnumerable<string>) void
Runs all Fixie tests in the specified assemblies.
GetCallerInfo(string, string, int) ScriptCallerInfo
Performs script caller information.
GetDirectories(GlobPattern, GlobberSettings) DirectoryPathCollection
Gets all directories matching the specified pattern.
GetDirectories(GlobPattern) DirectoryPathCollection
Gets all directories matching the specified pattern.
GetFiles(GlobPattern, GlobberSettings) FilePathCollection
Gets all files matching the specified pattern.
GetFiles(GlobPattern) FilePathCollection
Gets all files matching the specified pattern.
GetPaths(GlobPattern, GlobberSettings) PathCollection
Gets all paths matching the specified pattern.
GetPaths(GlobPattern) PathCollection
Gets all paths matching the specified pattern.
GetSubDirectories(DirectoryPath) DirectoryPathCollection
Gets a list of all the directories inside a directory.
GitHubActions() IGitHubActionsProvider
Gets a GitHubActionsProvider instance that can be used to obtain information from the GitHub Actions environment.
GitLabCI() IGitLabCIProvider
Gets a GitLabCIProvider instance that can be used to obtain information from the GitLab CI environment.
GitLink(DirectoryPath, GitLinkSettings) void
Update pdb files to link all sources, using specified settings. This will allow anyone to step through the source code while debugging without a symbol source server.
GitLink(DirectoryPath) void
Update pdb files to link all sources. This will allow anyone to step through the source code while debugging without a symbol source server.
GitLink3(FilePath, GitLink3Settings) void
Update the pdb file to link all sources. This will allow anyone to step through the source code while debugging without a symbol source server.
GitLink3(FilePath) void
Update the pdb file to link all sources. This will allow anyone to step through the source code while debugging without a symbol source server.
GitLink3(IEnumerable<FilePath>, GitLink3Settings) void
Update the pdb files to link all sources. This will allow anyone to step through the source code while debugging without a symbol source server.
GitLink3(IEnumerable<FilePath>) void
Update the pdb files to link all sources. This will allow anyone to step through the source code while debugging without a symbol source server.
GitReleaseManagerAddAssets(string, string, string, string, string, GitReleaseManagerAddAssetsSettings) void
Add Assets to an existing release using the specified settings.
GitReleaseManagerAddAssets(string, string, string, string, string) void
Add Assets to an existing release.
GitReleaseManagerClose(string, string, string, string, GitReleaseManagerCloseMilestoneSettings) void
Closes the milestone associated with a release using the specified settings.
GitReleaseManagerClose(string, string, string, string) void
Closes the milestone associated with a release.
GitReleaseManagerCreate(string, string, string, GitReleaseManagerCreateSettings) void
Creates a Package Release using the specified settings.
GitReleaseManagerCreate(string, string, string) void
Creates a Package Release.
GitReleaseManagerDiscard(string, string, string, string, GitReleaseManagerDiscardSettings) void
Discards a Release using the specified settings.
GitReleaseManagerDiscard(string, string, string, string) void
Discards a Release.
GitReleaseManagerExport(string, string, string, FilePath, GitReleaseManagerExportSettings) void
Exports the release notes using the specified settings.
GitReleaseManagerExport(string, string, string, FilePath) void
Exports the release notes.
GitReleaseManagerLabel(string, string, string, GitReleaseManagerLabelSettings) void
Deletes and creates labels using the specified settings.
GitReleaseManagerLabel(string, string, string) void
Deletes and creates labels.
GitReleaseManagerOpen(string, string, string, string, GitReleaseManagerOpenMilestoneSettings) void
Opens the milestone associated with a release using the specified settings.
GitReleaseManagerOpen(string, string, string, string) void
Opens the milestone associated with a release.
GitReleaseManagerPublish(string, string, string, string, GitReleaseManagerPublishSettings) void
Publishes the release using the specified settings.
GitReleaseManagerPublish(string, string, string, string) void
Publishes the release.
GitReleaseNotes(FilePath, GitReleaseNotesSettings) void
Generates a set of release notes based on the commit history of the repository and specified settings.
GitVersion(GitVersionSettings) GitVersion
Retrieves the GitVersion output.
GitVersion() GitVersion
Retrieves the GitVersion output.
GoCD() IGoCDProvider
Gets a GoCDProvider instance that can be used to obtain information from the Go.CD environment.
HasArgument(string) bool
Determines whether or not the specified argument exist.
HasEnvironmentVariable(string) bool
Checks for the existence of a value for a given environment variable.
ILMerge(FilePath, FilePath, IEnumerable<FilePath>, ILMergeSettings) void
Merges the specified assemblies.
ILMerge(FilePath, FilePath, IEnumerable<FilePath>) void
Merges the specified assemblies.
ILRepack(FilePath, FilePath, IEnumerable<FilePath>, ILRepackSettings) void
Merges the specified assemblies.
ILRepack(FilePath, FilePath, IEnumerable<FilePath>) void
Merges the specified assemblies.
Information(LogAction) void
Writes an informational message to the log using the specified log message action. Evaluation message only if verbosity same or more verbose.
Information(object) void
Writes an informational message to the log using the specified value.
Information(string, object[]) void
Writes an informational message to the log using the specified format information.
Information(string) void
Writes an informational message to the log using the specified string value.
InnoSetup(FilePath, InnoSetupSettings) void
Compiles the given Inno Setup script using the given settings.
InnoSetup(FilePath) void
Compiles the given Inno Setup script using the default settings.
InspectCode(FilePath, InspectCodeSettings) void
Analyses the specified solution with ReSharper's InspectCode, using the specified settings.
InspectCode(FilePath) void
Analyses the specified solution with ReSharper's InspectCode.
InspectCodeFromConfig(FilePath) void
Runs ReSharper's InspectCode using the specified config file.
IsDryRun() bool
Determines whether or not the current script execution is a dry run.
IsIn<SetupContext>(SetupContext[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
IsRunningOnFreeBSD() bool
Determines whether the build script running on a FreeBSD based system.
IsRunningOnLinux() bool
Determines whether the build script running on a Linux based system.
IsRunningOnMacOs() bool
Determines whether the build script running on a macOS based system.
IsRunningOnUnix() bool
Determines whether the build script running on a Unix or Linux based system.
IsRunningOnWindows() bool
Determines whether the build script is running on Windows.
Jenkins() IJenkinsProvider
Gets a JenkinsProvider instance that can be used to obtain information from the Jenkins environment.
MakeAbsolute(DirectoryPath) DirectoryPath
Makes the path absolute (if relative) using the current working directory.
MakeAbsolute(FilePath) FilePath
Makes the path absolute (if relative) using the current working directory.
MakeNSIS(FilePath, MakeNSISSettings) void
Compiles the given NSIS script using the given settings.
MakeNSIS(FilePath) void
Compiles the given NSIS script using the default settings.
MakeRelative(DirectoryPath, DirectoryPath) DirectoryPath
Makes the directory path relative (if absolute) to a specified root directory. If no root directory is defined the current working directory is used as default root.
MakeRelative(FilePath, DirectoryPath) FilePath
Makes the file path relative (if absolute) to a specified root directory. If no root directory is defined the current working directory is used as default root.
MinimalVerbosity() IDisposable
Sets the log verbosity to minimal and returns a disposable that restores the log verbosity on dispose.
MoveDirectory(DirectoryPath, DirectoryPath) void
Moves an existing directory to a new location, providing the option to specify a new directory name.
MoveFile(FilePath, FilePath) void
Moves an existing file to a new location, providing the option to specify a new file name.
MoveFiles(GlobPattern, DirectoryPath) void
Moves existing files matching the specified pattern to a new location.
MoveFiles(IEnumerable<FilePath>, DirectoryPath) void
Moves existing files to a new location.
MoveFileToDirectory(FilePath, DirectoryPath) void
Moves an existing file to a new location.
MSBuild(FilePath, Action<MSBuildSettings>) void
Builds the specified solution or MsBuild project file using MSBuild.
MSBuild(FilePath, MSBuildSettings) void
Builds the specified solution or MsBuild project file using MSBuild.
MSBuild(FilePath) void
Builds the specified solution or MsBuild project file using MSBuild.
MSpec(GlobPattern, MSpecSettings) void
Runs all MSpec tests in the assemblies matching the specified pattern.
MSpec(GlobPattern) void
Runs all MSpec tests in the assemblies matching the specified pattern.
MSpec(IEnumerable<FilePath>, MSpecSettings) void
Runs all MSpec tests in the specified assemblies.
MSpec(IEnumerable<FilePath>) void
Runs all MSpec tests in the specified assemblies.
MSpec(IEnumerable<string>, MSpecSettings) void
Runs all MSpec tests in the specified assemblies.
MSpec(IEnumerable<string>) void
Runs all MSpec tests in the specified assemblies.
MSTest(GlobPattern, MSTestSettings) void
Runs all MSTest unit tests in the assemblies matching the specified pattern.
MSTest(GlobPattern) void
Runs all MSTest unit tests in the assemblies matching the specified pattern.
MSTest(IEnumerable<FilePath>, MSTestSettings) void
Runs all MSTest unit tests in the specified assemblies.
MSTest(IEnumerable<FilePath>) void
Runs all MSTest unit tests in the specified assemblies.
MyGet() IMyGetProvider
Gets a MyGetProvider instance that can be used to manipulate the MyGet environment.
NormalVerbosity() IDisposable
Sets the log verbosity to normal and returns a disposable that restores the log verbosity on dispose.
NotNull<SetupContext>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<SetupContext>(string) void
Requires the Cake.Issues addin
NuGetAdd(string, NuGetAddSettings) void
Adds a NuGet package using package id and source.
NuGetAdd(string, string) void
Adds a NuGet package using package id and source.
NuGetAddSource(string, string, NuGetSourcesSettings) void
Adds NuGet package source using the specified name, source & settings to global user config.
NuGetAddSource(string, string) void
Adds NuGet package source using the specified name &source to global user config.
NuGetDelete(string, string, NuGetDeleteSettings) void
Deletes or unlists a package from a package source.
NuGetHasSource(string, NuGetSourcesSettings) bool
Checks whether or not a NuGet package source exists in the global user configuration, using the specified source and settings.
NuGetHasSource(string) bool
Checks whether or not a NuGet package source exists in the global user configuration, using the specified source.
NuGetInit(string, string, NuGetInitSettings) void
Adds all packages from source to destination using specified settings.
NuGetInit(string, string) void
Adds all packages from source to destination.
NuGetInstall(IEnumerable<string>, NuGetInstallSettings) void
Installs NuGet packages using the specified settings.
NuGetInstall(IEnumerable<string>) void
Installs NuGet packages.
NuGetInstall(string, NuGetInstallSettings) void
Installs a NuGet package using the specified settings.
NuGetInstall(string) void
Installs a NuGet package.
NuGetInstallFromConfig(FilePath, NuGetInstallSettings) void
Installs NuGet packages using the specified package configuration and settings.
NuGetInstallFromConfig(FilePath) void
Installs NuGet packages using the specified package configuration.
NuGetInstallFromConfig(IEnumerable<FilePath>, NuGetInstallSettings) void
Installs NuGet packages using the specified package configurations and settings.
NuGetInstallFromConfig(IEnumerable<FilePath>) void
Installs NuGet packages using the specified package configurations.
NuGetList(NuGetListSettings) IEnumerable<NuGetListItem>
List packages on available from source using specified settings.
NuGetList(string, NuGetListSettings) IEnumerable<NuGetListItem>
List packages on available from source using specified settings.
NuGetList(string) IEnumerable<NuGetListItem>
List packages on available from source using specified settings.
NuGetPack(FilePath, NuGetPackSettings) void
Creates a NuGet package using the specified nuspec or project file.
NuGetPack(IEnumerable<FilePath>, NuGetPackSettings) void
Creates NuGet packages using the specified nuspec or project files.
NuGetPack(NuGetPackSettings) void
Creates a NuGet package using the specified settings.
NuGetPush(FilePath, NuGetPushSettings) void
Pushes a NuGet package to a NuGet server and publishes it.
NuGetPush(IEnumerable<FilePath>, NuGetPushSettings) void
Pushes NuGet packages to a NuGet server and publishes them.
NuGetRemoveSource(string, string, NuGetSourcesSettings) void
Removes NuGet package source using the specified name, source & settings from global user config.
NuGetRemoveSource(string, string) void
Removes NuGet package source using the specified name & source from global user config.
NuGetRestore(FilePath, NuGetRestoreSettings) void
Restores NuGet packages using the specified settings.
NuGetRestore(FilePath) void
Restores NuGet packages for the specified target.
NuGetRestore(IEnumerable<FilePath>, NuGetRestoreSettings) void
Restores NuGet packages using the specified settings.
NuGetRestore(IEnumerable<FilePath>) void
Restores NuGet packages for the specified targets.
NuGetSetApiKey(string, string, NuGetSetApiKeySettings) void
Installs NuGet packages using the specified API key, source and settings.
NuGetSetApiKey(string, string) void
Installs NuGet packages using the specified API key and source.
NuGetSetProxy(string, string, string, NuGetSetProxySettings) void
Set the proxy settings to be used while connecting to your NuGet feed, including settings.
NuGetSetProxy(string, string, string) void
Set the proxy settings to be used while connecting to your NuGet feed.
NuGetUpdate(FilePath, NuGetUpdateSettings) void
Updates NuGet packages using the specified settings.
NuGetUpdate(FilePath) void
Updates NuGet packages.
NuGetUpdate(IEnumerable<FilePath>, NuGetUpdateSettings) void
Updates NuGet packages using the specified settings.
NuGetUpdate(IEnumerable<FilePath>) void
Updates NuGet packages.
NUnit(GlobPattern, NUnitSettings) void
Runs all NUnit unit tests in the assemblies matching the specified pattern, using the specified settings.
NUnit(GlobPattern) void
Runs all NUnit unit tests in the assemblies matching the specified pattern.
NUnit(IEnumerable<FilePath>, NUnitSettings) void
Runs all NUnit unit tests in the specified assemblies, using the specified settings.
NUnit(IEnumerable<FilePath>) void
Runs all NUnit unit tests in the specified assemblies.
NUnit(IEnumerable<string>, NUnitSettings) void
Runs all NUnit unit tests in the specified assemblies, using the specified settings.
NUnit(IEnumerable<string>) void
Runs all NUnit unit tests in the specified assemblies.
NUnit3(GlobPattern, NUnit3Settings) void
Runs all NUnit unit tests in the assemblies matching the specified pattern, using the specified settings.
NUnit3(GlobPattern) void
Runs all NUnit unit tests in the assemblies matching the specified pattern.
NUnit3(IEnumerable<FilePath>, NUnit3Settings) void
Runs all NUnit unit tests in the specified assemblies, using the specified settings.
NUnit3(IEnumerable<FilePath>) void
Runs all NUnit unit tests in the specified assemblies.
NUnit3(IEnumerable<string>, NUnit3Settings) void
Runs all NUnit unit tests in the specified assemblies, using the specified settings.
NUnit3(IEnumerable<string>) void
Runs all NUnit unit tests in the specified assemblies.
OctoCreateRelease(string, CreateReleaseSettings) void
Creates a release for the specified Octopus Deploy Project.
OctoDeployRelease(string, string, string, string, string, OctopusDeployReleaseDeploymentSettings) void
Deploys the specified already existing release into a specified environment See Octopus Documentation for more details.
OctoDeployRelease(string, string, string, string[], string, OctopusDeployReleaseDeploymentSettings) void
Deploys the specified already existing release into a specified environment See Octopus Documentation for more details.
OctoPack(string, OctopusPackSettings) void
Packs the specified folder into an Octopus Deploy package.
OctoPack(string) void
Packs the specified folder into an Octopus Deploy package.
OctoPromoteRelease(string, string, string, string, string, OctopusDeployPromoteReleaseSettings) void
Promotes the specified already existing release into a specified environment See Octopus Documentation for more details.
OctoPush(string, string, FilePath, OctopusPushSettings) void
Pushes the specified package to the Octopus Deploy repository.
OctoPush(string, string, IEnumerable<FilePath>, OctopusPushSettings) void
Pushes the specified packages to the Octopus Deploy repository.
OpenCover(Action<ICakeContext>, FilePath, OpenCoverSettings) void
Runs OpenCover for the specified action and settings.
ParseAllReleaseNotes(FilePath) IReadOnlyList<ReleaseNotes>
Parses all release notes.
ParseAssemblyInfo(FilePath) AssemblyInfoParseResult
Parses an existing assembly information file.
ParseProject(FilePath) ProjectParserResult
Parses project information from project file.
ParseReleaseNotes(FilePath) ReleaseNotes
Parses the latest release notes.
ParseSolution(FilePath) SolutionParserResult
Parses project information from a solution file.
ParseXmlDocExampleCode(FilePath) IEnumerable<XmlDocExampleCode>
Parses Xml documentation example code from given path.
ParseXmlDocFilesExampleCode(GlobPattern) IEnumerable<XmlDocExampleCode>
Parses Xml documentation example code from file(s) using given pattern.
QuietVerbosity() IDisposable
Sets the log verbosity to quiet and returns a disposable that restores the log verbosity on dispose.
ReportGenerator(FilePath, DirectoryPath, ReportGeneratorSettings) void
Converts the specified coverage report into human readable form using the specified settings.
ReportGenerator(FilePath, DirectoryPath) void
Converts the specified coverage report into human readable form.
ReportGenerator(GlobPattern, DirectoryPath, ReportGeneratorSettings) void
Converts the coverage report specified by the glob pattern into human readable form using the specified settings.
ReportGenerator(GlobPattern, DirectoryPath) void
Converts the coverage report specified by the glob pattern into human readable form.
ReportGenerator(IEnumerable<FilePath>, DirectoryPath, ReportGeneratorSettings) void
Converts the specified coverage reports into human readable form using the specified settings.
ReportGenerator(IEnumerable<FilePath>, DirectoryPath) void
Converts the specified coverage reports into human readable form.
ReportUnit(DirectoryPath, DirectoryPath, ReportUnitSettings) void
Converts the reports in the specified directory into human readable form and outputs to specified folder.
ReportUnit(DirectoryPath, ReportUnitSettings) void
Converts the reports in the specified directory into human readable form.
ReportUnit(DirectoryPath) void
Converts the reports in the specified directory into human readable form.
ReportUnit(FilePath, FilePath, ReportUnitSettings) void
Converts the single specified report into human readable form and outputs to specified file.
ReportUnit(FilePath, FilePath) void
Converts the single specified report into human readable form and outputs to specified file.
RoundhouseDrop(RoundhouseSettings) void
Executes Roundhouse migration to drop the database using the provided settings.
RoundhouseMigrate(RoundhouseSettings) void
Executes Roundhouse with the given configured settings.
Sign(FilePath, SignToolSignSettings) void
Signs the specified assembly.
Sign(IEnumerable<FilePath>, SignToolSignSettings) void
Signs the specified assemblies.
Sign(IEnumerable<string>, SignToolSignSettings) void
Signs the specified assemblies.
Sign(string, SignToolSignSettings) void
Signs the specified assembly.
SpecFlowStepDefinitionReport(FilePath, SpecFlowStepDefinitionReportSettings) void
Creates a report that shows the usage and binding status of the steps for the entire project. You can use this report to find both unused code in the automation layer and scenario steps that have no definition yet. See SpecFlow Documentation for more information.
SpecFlowStepDefinitionReport(FilePath) void
Creates a report that shows the usage and binding status of the steps for the entire project. You can use this report to find both unused code in the automation layer and scenario steps that have no definition yet. See SpecFlow Documentation for more information.
SpecFlowTestExecutionReport(Action<ICakeContext>, FilePath, SpecFlowTestExecutionReportSettings) void
Creates a formatted HTML report of a test execution. The report contains a summary about the executed tests and the result and also a detailed report for the individual scenario executions. See SpecFlow Documentation for more information.
SpecFlowTestExecutionReport(Action<ICakeContext>, FilePath) void
Creates a formatted HTML report of a test execution. The report contains a summary about the executed tests and the result and also a detailed report for the individual scenario executions. See SpecFlow Documentation for more information.
StartAndReturnProcess(FilePath, ProcessSettings) IProcess
Starts the process resource that is specified by the filename and settings.
StartAndReturnProcess(FilePath) IProcess
Starts the process resource that is specified by the filename.
StartProcess(FilePath, ProcessSettings, IEnumerable<string>, IEnumerable<string>) int
Starts the process resource that is specified by the filename and settings.
StartProcess(FilePath, ProcessSettings, IEnumerable<string>) int
Starts the process resource that is specified by the filename and settings.
StartProcess(FilePath, ProcessSettings) int
Starts the process resource that is specified by the filename and settings.
StartProcess(FilePath, string) int
Starts the process resource that is specified by the filename and arguments.
StartProcess(FilePath) int
Starts the process resource that is specified by the filename.
TeamCity() ITeamCityProvider
Gets a TeamCityProvider instance that can be used to manipulate the TeamCity environment.
ThrowIfNull<SetupContext>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<SetupContext>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin
TransformTemplate(FilePath, TextTransformSettings) void
Transform a text template.
TransformTemplate(FilePath) void
Transform a text template.
TransformText(string, string, string) TextTransformation<TextTransformationTemplate>
Creates a text transformation from the provided template, using the specified placeholder.
TransformText(string) TextTransformation<TextTransformationTemplate>
Creates a text transformation from the provided template.
TransformTextFile(FilePath, string, string) TextTransformation<TextTransformationTemplate>
Creates a text transformation from the provided template on disc, using the specified placeholder.
TransformTextFile(FilePath) TextTransformation<TextTransformationTemplate>
Creates a text transformation from the provided template on disc.
TravisCI() ITravisCIProvider
Gets a TravisCIProvider instance that can be used to obtain information from the Travis CI environment.
Unzip(FilePath, DirectoryPath, bool) void
Unzips the specified file.
Unzip(FilePath, DirectoryPath) void
Unzips the specified file.
UploadFile(string, byte[], string) void
Uploads the specified byte array via a HTTP POST to the specified uri using multipart/form-data.
UploadFile(string, FilePath) void
Uploads the specified file via a HTTP POST to the specified uri using multipart/form-data.
UploadFile(Uri, byte[], string, UploadFileSettings) void
Uploads the specified byte array via a HTTP POST to the specified uri using multipart/form-data.
UploadFile(Uri, FilePath, UploadFileSettings) void
Uploads the specified file via a HTTP POST to the specified uri using multipart/form-data.
Verbose(LogAction) void
Writes a verbose message to the log using the specified log message action. Evaluation message only if verbosity same or more verbose.
Verbose(object) void
Writes a verbose message to the log using the specified value.
Verbose(string, object[]) void
Writes a verbose message to the log using the specified format information.
Verbose(string) void
Writes a verbose message to the log using the specified string value.
VerboseVerbosity() IDisposable
Sets the log verbosity to verbose and returns a disposable that restores the log verbosity on dispose.
VSTest(GlobPattern, VSTestSettings) void
Runs all VSTest unit tests in the assemblies matching the specified pattern.
VSTest(GlobPattern) void
Runs all VSTest unit tests in the assemblies matching the specified pattern.
VSTest(IEnumerable<FilePath>, VSTestSettings) void
Runs all VSTest unit tests in the specified assemblies.
VSTest(IEnumerable<FilePath>) void
Runs all VSTest unit tests in the specified assemblies.
VSWhereAll(VSWhereAllSettings) DirectoryPathCollection
Gets all Visual Studio product installation paths.
VSWhereAll() DirectoryPathCollection
Gets all Visual Studio product installation paths.
VSWhereLatest(VSWhereLatestSettings) DirectoryPath
Gets the latest Visual Studio product installation path.
VSWhereLatest() DirectoryPath
Gets the latest Visual Studio product installation path.
VSWhereLegacy(bool) DirectoryPath
Gets the legacy Visual Studio product installation paths.
VSWhereLegacy(VSWhereLegacySettings) DirectoryPathCollection
Gets the legacy Visual Studio product installation paths.
VSWhereProducts(string, VSWhereProductSettings) DirectoryPathCollection
Gets Visual Studio product installation paths.
VSWhereProducts(string) DirectoryPathCollection
Gets Visual Studio product installation paths.
Warning(LogAction) void
Writes a warning message to the log using the specified log message action. Evaluation message only if verbosity same or more verbose.
Warning(object) void
Writes an warning message to the log using the specified value.
Warning(string, object[]) void
Writes a warning message to the log using the specified format information.
Warning(string) void
Writes an warning message to the log using the specified string value.
WiXCandle(GlobPattern, CandleSettings) void
Compiles all .wxs sources matching the specified pattern.
WiXCandle(IEnumerable<FilePath>, CandleSettings) void
Compiles all .wxs sources in the provided source files.
WiXHeat(DirectoryPath, FilePath, WiXHarvestType, HeatSettings) void
Harvests files in the provided directory path.
WiXHeat(DirectoryPath, FilePath, WiXHarvestType) void
Harvests files in the provided object files.
WiXHeat(FilePath, FilePath, WiXHarvestType, HeatSettings) void
Harvests from the desired files.
WiXHeat(FilePath, FilePath, WiXHarvestType) void
Harvests from the desired files.
WiXHeat(string, FilePath, WiXHarvestType, HeatSettings) void
Harvests files for a website or performance.
WiXHeat(string, FilePath, WiXHarvestType) void
Harvests files for a website or performance.
WiXLight(GlobPattern, LightSettings) void
Links all .wixobj files matching the specified pattern.
WiXLight(IEnumerable<FilePath>, LightSettings) void
Links all .wixobj files in the provided object files.
XBuild(FilePath, Action<XBuildSettings>) void
Builds the specified solution using XBuild.
XBuild(FilePath, XBuildSettings) void
Builds the specified solution using XBuild.
XBuild(FilePath) void
Builds the specified solution using XBuild.
XmlPeek(FilePath, string, XmlPeekSettings) string
Get the value of a target node.
XmlPeek(FilePath, string) string
Gets the value of a target node.
XmlPoke(FilePath, string, string, XmlPokeSettings) void
Set the value of, or remove, target nodes.
XmlPoke(FilePath, string, string) void
Set the value of, or remove, target nodes.
XmlPokeString(string, string, string, XmlPokeSettings) string
Set the value of, or remove, target nodes.
XmlPokeString(string, string, string) string
Set the value of, or remove, target nodes.
XmlTransform(FilePath, FilePath, FilePath, XmlTransformationSettings) void
Performs XML XSL transformation.
XmlTransform(FilePath, FilePath, FilePath) void
Performs XML XSL transformation.
XmlTransform(string, string, XmlTransformationSettings) string
Performs XML XSL transformation.
XmlTransform(string, string) string
Performs XML XSL transformation.
XUnit(GlobPattern, XUnitSettings) void
Runs all xUnit.net tests in the assemblies matching the specified pattern.
XUnit(GlobPattern) void
Runs all xUnit.net tests in the assemblies matching the specified pattern.
XUnit(IEnumerable<FilePath>, XUnitSettings) void
Runs all xUnit.net tests in the specified assemblies.
XUnit(IEnumerable<FilePath>) void
Runs all xUnit.net tests in the specified assemblies.
XUnit(IEnumerable<string>, XUnitSettings) void
Runs all xUnit.net tests in the specified assemblies.
XUnit(IEnumerable<string>) void
Runs all xUnit.net tests in the specified assemblies.
XUnit2(GlobPattern, XUnit2Settings) void
Runs all xUnit.net v2 tests in the assemblies matching the specified pattern.
XUnit2(GlobPattern) void
Runs all xUnit.net v2 tests in the assemblies matching the specified pattern.
XUnit2(IEnumerable<FilePath>, XUnit2Settings) void
Runs all xUnit.net v2 tests in the specified assemblies.
XUnit2(IEnumerable<FilePath>) void
Runs all xUnit.net tests in the specified assemblies.
XUnit2(IEnumerable<string>, XUnit2Settings) void
Runs all xUnit.net v2 tests in the specified assemblies.
XUnit2(IEnumerable<string>) void
Runs all xUnit.net v2 tests in the specified assemblies.
Zip(DirectoryPath, FilePath, IEnumerable<FilePath>) void
Zips the specified files.
Zip(DirectoryPath, FilePath, IEnumerable<string>) void
Zips the specified files.
Zip(DirectoryPath, FilePath, string) void
Zips the files matching the specified pattern.
Zip(DirectoryPath, FilePath) void
Zips the specified directory.