DotNet aliases

Built-In

Contains functionality related to .NET CLI.

In order to use the commands for this alias, the .NET CLI tools will need to be installed on the machine where the Cake script is being executed. See this page for information on how to install.

Build

DotNetBuild(string) Build all projects.
DotNetBuild(string, DotNetBuildSettings) Build all projects.

Build Server

DotNetBuildServerShutdown() Shuts down build servers that are started from dotnet.
DotNetBuildServerShutdown(DotNetBuildServerShutdownSettings) Shuts down build servers that are started from dotnet.

Clean

DotNetClean(string) Cleans a project's output.
DotNetClean(string, DotNetCleanSettings) Cleans a project's output.

Execute

DotNetExecute(FilePath) Execute an assembly.
DotNetExecute(FilePath, ProcessArgumentBuilder) Execute an assembly with arguments in the specific path.
DotNetExecute(FilePath, ProcessArgumentBuilder, DotNetExecuteSettings) Execute an assembly with arguments in the specific path with settings.

MSBuild

DotNetMSBuild() Builds the specified targets in a project file found in the current working directory.
DotNetMSBuild(DotNetMSBuildSettings) Builds the specified targets in a project file found in the current working directory.
DotNetMSBuild(string) Builds the specified targets in the project file.
DotNetMSBuild(string, DotNetMSBuildSettings) Builds the specified targets in the project file.

NuGet

DotNetNuGetAddSource(string, DotNetNuGetSourceSettings) Add the specified NuGet source.
DotNetNuGetDelete() Delete a NuGet Package from a server.
DotNetNuGetDelete(DotNetNuGetDeleteSettings) Deletes a package from a server using the specified settings.
DotNetNuGetDelete(string) Deletes a package from nuget.org.
DotNetNuGetDelete(string, DotNetNuGetDeleteSettings) Deletes a package from a server.
DotNetNuGetDelete(string, string) Deletes a specific version of a package from nuget.org.
DotNetNuGetDelete(string, string, DotNetNuGetDeleteSettings) Deletes a package from a server using the specified settings.
DotNetNuGetDisableSource(string) Disable the specified NuGet source.
DotNetNuGetDisableSource(string, DotNetNuGetSourceSettings) Disable the specified NuGet source.
DotNetNuGetEnableSource(string) Enable the specified NuGet source.
DotNetNuGetEnableSource(string, DotNetNuGetSourceSettings) Enable the specified NuGet source.
DotNetNuGetHasSource(string) Determines whether the specified NuGet source exists.
DotNetNuGetHasSource(string, DotNetNuGetSourceSettings) Determines whether the specified NuGet source exists.
DotNetNuGetPush(FilePath) Pushes one or more packages to a server.
DotNetNuGetPush(FilePath, DotNetNuGetPushSettings) Pushes one or more packages to a server using the specified settings.
DotNetNuGetRemoveSource(string) Remove the specified NuGet source.
DotNetNuGetRemoveSource(string, DotNetNuGetSourceSettings) Remove the specified NuGet source.
DotNetNuGetUpdateSource(string, DotNetNuGetSourceSettings) Update the specified NuGet source.

Pack

DotNetPack(string) Package all projects.
DotNetPack(string, DotNetPackSettings) Package all projects.

Publish

DotNetPublish(string) Publish all projects.
DotNetPublish(string, DotNetPublishSettings) Publish all projects.

Restore

DotNetRestore() Restore all NuGet Packages.
DotNetRestore(DotNetRestoreSettings) Restore all NuGet Packages with the settings.
DotNetRestore(string) Restore all NuGet Packages in the specified path.
DotNetRestore(string, DotNetRestoreSettings) Restore all NuGet Packages in the specified path with settings.

Run

DotNetRun() Run all projects.
DotNetRun(string) Run project.
DotNetRun(string, DotNetRunSettings) Run project with settings.
DotNetRun(string, ProcessArgumentBuilder) Run project with path and arguments.
DotNetRun(string, ProcessArgumentBuilder, DotNetRunSettings) Run project with settings.

Test

DotNetTest() Test project.
DotNetTest(string) Test project with path.
DotNetTest(string, DotNetTestSettings) Test project with settings.
DotNetTest(string, ProcessArgumentBuilder, DotNetTestSettings) Test project with settings.
DotNetVSTest(GlobPattern) Test one or more projects specified by a path or glob pattern using the VS Test host runner.
DotNetVSTest(GlobPattern, DotNetVSTestSettings) Test one or more projects specified by a path or glob pattern with settings using the VS Test host runner.
DotNetVSTest(IEnumerable<FilePath>, DotNetVSTestSettings) Test one or more specified projects with settings using the VS Test host runner.

Tool

DotNetTool(FilePath, string) Execute an .NET Core Extensibility Tool.
DotNetTool(FilePath, string, ProcessArgumentBuilder) Execute an .NET Core Extensibility Tool.
DotNetTool(FilePath, string, ProcessArgumentBuilder, DotNetToolSettings) Execute an .NET Core Extensibility Tool.
DotNetTool(string) Execute an .NET Core Extensibility Tool.
DotNetTool(string, DotNetToolSettings) Execute an .NET Core Extensibility Tool.