DotNetCore

Summary

Contains functionality related to .NET Core CLI.

In order to use the commands for this alias, the .Net Core 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

Build Server

DotNetCoreBuildServerShutdown(ICakeContext) Shuts down build servers that are started from dotnet.
DotNetCoreBuildServerShutdown(ICakeContext, DotNetCoreBuildServerSettings) Shuts down build servers that are started from dotnet.

Clean

Execute

DotNetCoreExecute(ICakeContext, FilePath) Execute an assembly.
DotNetCoreExecute(ICakeContext, FilePath, ProcessArgumentBuilder) Execute an assembly with arguments in the specific path.
DotNetCoreExecute(ICakeContext, FilePath, ProcessArgumentBuilder, DotNetCoreExecuteSettings) Execute an assembly with arguments in the specific path with settings.

MSBuild

DotNetCoreMSBuild(ICakeContext) Builds the specified targets in a project file found in the current working directory.
DotNetCoreMSBuild(ICakeContext, DotNetCoreMSBuildSettings) Builds the specified targets in a project file found in the current working directory.
DotNetCoreMSBuild(ICakeContext, string) Builds the specified targets in the project file.
DotNetCoreMSBuild(ICakeContext, string, DotNetCoreMSBuildSettings) Builds the specified targets in the project file.

NuGet

DotNetCoreNuGetAddSource(ICakeContext, string, DotNetCoreNuGetSourceSettings) Add the specified NuGet source.
DotNetCoreNuGetDelete(ICakeContext) Delete a NuGet Package from a server.
DotNetCoreNuGetDelete(ICakeContext, DotNetCoreNuGetDeleteSettings) Deletes a package from a server using the specified settings.
DotNetCoreNuGetDelete(ICakeContext, string) Deletes a package from nuget.org.
DotNetCoreNuGetDelete(ICakeContext, string, DotNetCoreNuGetDeleteSettings) Deletes a package from a server
DotNetCoreNuGetDelete(ICakeContext, string, string) Deletes a specific version of a package from nuget.org.
DotNetCoreNuGetDelete(ICakeContext, string, string, DotNetCoreNuGetDeleteSettings) Deletes a package from a server using the specified settings.
DotNetCoreNuGetDisableSource(ICakeContext, string) Disable the specified NuGet source.
DotNetCoreNuGetDisableSource(ICakeContext, string, DotNetCoreNuGetSourceSettings) Disable the specified NuGet source.
DotNetCoreNuGetEnableSource(ICakeContext, string) Enable the specified NuGet source.
DotNetCoreNuGetEnableSource(ICakeContext, string, DotNetCoreNuGetSourceSettings) Enable the specified NuGet source.
DotNetCoreNuGetHasSource(ICakeContext, string) Determines whether the specified NuGet source exists.
DotNetCoreNuGetHasSource(ICakeContext, string, DotNetCoreNuGetSourceSettings) Determines whether the specified NuGet source exists.
DotNetCoreNuGetPush(ICakeContext, string) Pushes one or more packages to a server.
DotNetCoreNuGetPush(ICakeContext, string, DotNetCoreNuGetPushSettings) Pushes one or more packages to a server using the specified settings.
DotNetCoreNuGetRemoveSource(ICakeContext, string) Remove the specified NuGet source.
DotNetCoreNuGetRemoveSource(ICakeContext, string, DotNetCoreNuGetSourceSettings) Remove the specified NuGet source.
DotNetCoreNuGetUpdateSource(ICakeContext, string, DotNetCoreNuGetSourceSettings) Update the specified NuGet source.

Pack

Publish

Restore

DotNetCoreRestore(ICakeContext) Restore all NuGet Packages.
DotNetCoreRestore(ICakeContext, DotNetCoreRestoreSettings) Restore all NuGet Packages with the settings.
DotNetCoreRestore(ICakeContext, string) Restore all NuGet Packages in the specified path.
DotNetCoreRestore(ICakeContext, string, DotNetCoreRestoreSettings) Restore all NuGet Packages in the specified path with settings.

Run

Test

Coverlet(ICakeContext, DirectoryPath, CoverletSettings) Runs the coverlet global tool with the given folder. We will discover any proj files, take the first and infer the name of the dll from that.
Addin from Cake.Coverlet.dll
Coverlet(ICakeContext, FilePath, CoverletSettings) Runs the coverlet global tool with the given test project. The name of the dll is inferred from the project name
Addin from Cake.Coverlet.dll
Coverlet(ICakeContext, FilePath, FilePath, CoverletSettings) Runs coverlet with the given dll, test project and settings
Addin from Cake.Coverlet.dll
DotNetCoreTest(ICakeContext) Test project.
DotNetCoreTest(ICakeContext, DotNetCoreTestSettings, FilePath, XUnit2Settings) Appends XUnit2Settings to an DotNetCoreTestSettings instance
Addin from Cake.Incubator.dll
DotNetCoreTest(ICakeContext, FilePath, DotNetCoreTestSettings, CoverletSettings) Runs DotNetCoreTest using the given CoverletSettings
Addin from Cake.Coverlet.dll
DotNetCoreTest(ICakeContext, FilePath, XUnit2Settings) Runs DotNetCoreTest using the given XUnit2Settings
Addin from Cake.Incubator.dll
DotNetCoreTest(ICakeContext, string) Test project with path.
DotNetCoreTest(ICakeContext, string, DotNetCoreTestSettings) Test project with settings.
DotNetCoreVSTest(ICakeContext, IEnumerable<FilePath>, DotNetCoreVSTestSettings) Test one or more specified projects with settings using the VS Test host runner.
DotNetCoreVSTest(ICakeContext, string) Test one or more projects specified by a path or glob pattern using the VS Test host runner.
DotNetCoreVSTest(ICakeContext, string, DotNetCoreVSTestSettings) Test one or more projects specified by a path or glob pattern with settings using the VS Test host runner.

Tool

DotNetCoreTool(ICakeContext, FilePath, string) Execute an .NET Core Extensibility Tool.
DotNetCoreTool(ICakeContext, FilePath, string, ProcessArgumentBuilder) Execute an .NET Core Extensibility Tool.
DotNetCoreTool(ICakeContext, FilePath, string, ProcessArgumentBuilder, DotNetCoreToolSettings) Execute an .NET Core Extensibility Tool.
DotNetCoreTool(ICakeContext, string) Execute an .NET Core Extensibility Tool.
DotNetCoreTool(ICakeContext, string, DotNetCoreToolSettings) Execute an .NET Core Extensibility Tool.