DotNetCore aliases

Built-In

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

DotNetCoreBuild(string) [deprecated] DotNetCoreBuild is obsolete and will be removed in a future release. Use DotNetBuild(ICakeContext, string) instead. Build all projects.
DotNetCoreBuild(string, DotNetCoreBuildSettings) [deprecated] DotNetCoreBuild is obsolete and will be removed in a future release. Use DotNetBuild(ICakeContext, string, DotNetBuildSettings) instead. Build all projects.

Build Server

DotNetCoreBuildServerShutdown() [deprecated] DotNetCoreBuildServerShutdown is obsolete and will be removed in a future release. Use DotNetBuildServerShutdown(ICakeContext) instead. Shuts down build servers that are started from dotnet.
DotNetCoreBuildServerShutdown(DotNetCoreBuildServerSettings) [deprecated] DotNetCoreBuildServerShutdown is obsolete and will be removed in a future release. Use DotNetBuildServerShutdown(ICakeContext, DotNetBuildServerShutdownSettings) instead. Shuts down build servers that are started from dotnet.

Clean

DotNetCoreClean(string) [deprecated] DotNetCoreClean is obsolete and will be removed in a future release. Use DotNetClean(ICakeContext, string) instead. Cleans a project's output.
DotNetCoreClean(string, DotNetCoreCleanSettings) [deprecated] DotNetCoreClean is obsolete and will be removed in a future release. Use DotNetClean(ICakeContext, string, DotNetCleanSettings) instead. Cleans a project's output.

Execute

DotNetCoreExecute(FilePath) [deprecated] DotNetCoreExecute is obsolete and will be removed in a future release. Use DotNetExecute(ICakeContext, FilePath) instead. Execute an assembly.
DotNetCoreExecute(FilePath, ProcessArgumentBuilder) [deprecated] DotNetCoreExecute is obsolete and will be removed in a future release. Use DotNetExecute(ICakeContext, FilePath, ProcessArgumentBuilder) instead. Execute an assembly with arguments in the specific path.
DotNetCoreExecute(FilePath, ProcessArgumentBuilder, DotNetCoreExecuteSettings) [deprecated] DotNetCoreExecute is obsolete and will be removed in a future release. Use DotNetExecute(ICakeContext, FilePath, ProcessArgumentBuilder, DotNetExecuteSettings) instead. Execute an assembly with arguments in the specific path with settings.

MSBuild

DotNetCoreMSBuild() [deprecated] DotNetCoreMSBuild is obsolete and will be removed in a future release. Use DotNetMSBuild(ICakeContext) instead. Builds the specified targets in a project file found in the current working directory.
DotNetCoreMSBuild(DotNetCoreMSBuildSettings) [deprecated] DotNetCoreMSBuild is obsolete and will be removed in a future release. Use DotNetMSBuild(ICakeContext, DotNetMSBuildSettings) instead. Builds the specified targets in a project file found in the current working directory.
DotNetCoreMSBuild(string) [deprecated] DotNetCoreMSBuild is obsolete and will be removed in a future release. Use DotNetMSBuild(ICakeContext, string) instead. Builds the specified targets in the project file.
DotNetCoreMSBuild(string, DotNetCoreMSBuildSettings) [deprecated] DotNetCoreMSBuild is obsolete and will be removed in a future release. Use DotNetMSBuild(ICakeContext, string, DotNetMSBuildSettings) instead. Builds the specified targets in the project file.

NuGet

DotNetCoreNuGetAddSource(string, DotNetCoreNuGetSourceSettings) [deprecated] DotNetCoreNuGetAddSource is obsolete and will be removed in a future release. Use DotNetNuGetAddSource(ICakeContext, string, DotNetNuGetSourceSettings) instead. Add the specified NuGet source.
DotNetCoreNuGetDelete() [deprecated] DotNetCoreNuGetDelete is obsolete and will be removed in a future release. Use DotNetNuGetDelete(ICakeContext) instead. Delete a NuGet Package from a server.
DotNetCoreNuGetDelete(DotNetCoreNuGetDeleteSettings) [deprecated] DotNetCoreNuGetDelete is obsolete and will be removed in a future release. Use DotNetNuGetDelete(ICakeContext, DotNetNuGetDeleteSettings) instead. Deletes a package from a server using the specified settings.
DotNetCoreNuGetDelete(string) [deprecated] DotNetCoreNuGetDelete is obsolete and will be removed in a future release. Use DotNetNuGetDelete(ICakeContext, string) instead. Deletes a package from nuget.org.
DotNetCoreNuGetDelete(string, DotNetCoreNuGetDeleteSettings) [deprecated] DotNetCoreNuGetDelete is obsolete and will be removed in a future release. Use DotNetNuGetDelete(ICakeContext, string, DotNetNuGetDeleteSettings) instead. Deletes a package from a server.
DotNetCoreNuGetDelete(string, string) [deprecated] DotNetCoreNuGetDelete is obsolete and will be removed in a future release. Use DotNetNuGetDelete(ICakeContext, string, string) instead. Deletes a specific version of a package from nuget.org.
DotNetCoreNuGetDelete(string, string, DotNetCoreNuGetDeleteSettings) [deprecated] DotNetCoreNuGetDelete is obsolete and will be removed in a future release. Use DotNetNuGetDelete(ICakeContext, string, string, DotNetNuGetDeleteSettings) instead. Deletes a package from a server using the specified settings.
DotNetCoreNuGetDisableSource(string) [deprecated] DotNetCoreNuGetDisableSource is obsolete and will be removed in a future release. Use DotNetNuGetDisableSource(ICakeContext, string) instead. Disable the specified NuGet source.
DotNetCoreNuGetDisableSource(string, DotNetCoreNuGetSourceSettings) [deprecated] DotNetCoreNuGetDisableSource is obsolete and will be removed in a future release. Use DotNetNuGetDisableSource(ICakeContext, string, DotNetNuGetSourceSettings) instead. Disable the specified NuGet source.
DotNetCoreNuGetEnableSource(string) [deprecated] DotNetCoreNuGetEnableSource is obsolete and will be removed in a future release. Use DotNetNuGetEnableSource(ICakeContext, string) instead. Enable the specified NuGet source.
DotNetCoreNuGetEnableSource(string, DotNetCoreNuGetSourceSettings) [deprecated] DotNetCoreNuGetEnableSource is obsolete and will be removed in a future release. Use DotNetNuGetEnableSource(ICakeContext, string, DotNetNuGetSourceSettings) instead. Enable the specified NuGet source.
DotNetCoreNuGetHasSource(string) [deprecated] DotNetCoreNuGetHasSource is obsolete and will be removed in a future release. Use DotNetNuGetHasSource(ICakeContext, string) instead. Determines whether the specified NuGet source exists.
DotNetCoreNuGetHasSource(string, DotNetCoreNuGetSourceSettings) [deprecated] DotNetCoreNuGetHasSource is obsolete and will be removed in a future release. Use DotNetNuGetHasSource(ICakeContext, string, DotNetNuGetSourceSettings) instead. Determines whether the specified NuGet source exists.
DotNetCoreNuGetPush(FilePath) [deprecated] DotNetCoreNuGetPush is obsolete and will be removed in a future release. Use DotNetNuGetPush(ICakeContext, FilePath) instead. Pushes one or more packages to a server.
DotNetCoreNuGetPush(FilePath, DotNetCoreNuGetPushSettings) [deprecated] DotNetCoreNuGetPush is obsolete and will be removed in a future release. Use DotNetNuGetPush(ICakeContext, FilePath, DotNetNuGetPushSettings) instead. Pushes one or more packages to a server using the specified settings.
DotNetCoreNuGetRemoveSource(string) [deprecated] DotNetCoreNuGetRemoveSource is obsolete and will be removed in a future release. Use DotNetNuGetRemoveSource(ICakeContext, string) instead. Remove the specified NuGet source.
DotNetCoreNuGetRemoveSource(string, DotNetCoreNuGetSourceSettings) [deprecated] DotNetCoreNuGetRemoveSource is obsolete and will be removed in a future release. Use DotNetNuGetRemoveSource(ICakeContext, string, DotNetNuGetSourceSettings) instead. Remove the specified NuGet source.
DotNetCoreNuGetUpdateSource(string, DotNetCoreNuGetSourceSettings) [deprecated] DotNetCoreNuGetUpdateSource is obsolete and will be removed in a future release. Use DotNetNuGetUpdateSource(ICakeContext, string, DotNetNuGetSourceSettings) instead. Update the specified NuGet source.

Pack

DotNetCorePack(string) [deprecated] DotNetCorePack is obsolete and will be removed in a future release. Use DotNetPack(ICakeContext, string) instead. Package all projects.
DotNetCorePack(string, DotNetCorePackSettings) [deprecated] DotNetCorePack is obsolete and will be removed in a future release. Use DotNetPack(ICakeContext, string, DotNetPackSettings) instead. Package all projects.

Publish

DotNetCorePublish(string) [deprecated] DotNetCorePublish is obsolete and will be removed in a future release. Use DotNetPublish(ICakeContext, string) instead. Publish all projects.
DotNetCorePublish(string, DotNetCorePublishSettings) [deprecated] DotNetCorePublish is obsolete and will be removed in a future release. Use DotNetPublish(ICakeContext, string, DotNetPublishSettings) instead. Publish all projects.

Restore

DotNetCoreRestore() [deprecated] DotNetCoreRestore is obsolete and will be removed in a future release. Use DotNetRestore(ICakeContext) instead. Restore all NuGet Packages.
DotNetCoreRestore(DotNetCoreRestoreSettings) [deprecated] DotNetCoreRestore is obsolete and will be removed in a future release. Use DotNetRestore(ICakeContext, DotNetRestoreSettings) instead. Restore all NuGet Packages with the settings.
DotNetCoreRestore(string) [deprecated] DotNetCoreRestore is obsolete and will be removed in a future release. Use DotNetRestore(ICakeContext, string) instead. Restore all NuGet Packages in the specified path.
DotNetCoreRestore(string, DotNetCoreRestoreSettings) [deprecated] DotNetCoreRestore is obsolete and will be removed in a future release. Use DotNetRestore(ICakeContext, string, DotNetRestoreSettings) instead. Restore all NuGet Packages in the specified path with settings.

Run

DotNetCoreRun() [deprecated] DotNetCoreRun is obsolete and will be removed in a future release. Use DotNetRun(ICakeContext) instead. Run all projects.
DotNetCoreRun(string) [deprecated] DotNetCoreRun is obsolete and will be removed in a future release. Use DotNetRun(ICakeContext, string) instead. Run project.
DotNetCoreRun(string, DotNetCoreRunSettings) [deprecated] DotNetCoreRun is obsolete and will be removed in a future release. Use DotNetRun(ICakeContext, string, DotNetRunSettings) instead. Run project with settings.
DotNetCoreRun(string, ProcessArgumentBuilder) [deprecated] DotNetCoreRun is obsolete and will be removed in a future release. Use DotNetRun(ICakeContext, string, ProcessArgumentBuilder) instead. Run project with path and arguments.
DotNetCoreRun(string, ProcessArgumentBuilder, DotNetCoreRunSettings) [deprecated] DotNetCoreRun is obsolete and will be removed in a future release. Use DotNetRun(ICakeContext, string, ProcessArgumentBuilder, DotNetRunSettings) instead. Run project with settings.

Test

DotNetCoreTest() [deprecated] DotNetCoreTest is obsolete and will be removed in a future release. Use DotNetTest(ICakeContext) instead. Test project.
DotNetCoreTest(string) [deprecated] DotNetCoreTest is obsolete and will be removed in a future release. Use DotNetTest(ICakeContext, string) instead. Test project with path.
DotNetCoreTest(string, DotNetCoreTestSettings) [deprecated] DotNetCoreTest is obsolete and will be removed in a future release. Use DotNetTest(ICakeContext, string, DotNetTestSettings) instead. Test project with settings.
DotNetCoreTest(string, ProcessArgumentBuilder, DotNetCoreTestSettings) [deprecated] DotNetCoreTest is obsolete and will be removed in a future release. Use DotNetTest(ICakeContext, string, ProcessArgumentBuilder, DotNetTestSettings) instead. Test project with settings.
DotNetCoreVSTest(GlobPattern) [deprecated] DotNetCoreVSTest is obsolete and will be removed in a future release. Use DotNetVSTest(ICakeContext, GlobPattern) instead. Test one or more projects specified by a path or glob pattern using the VS Test host runner.
DotNetCoreVSTest(GlobPattern, DotNetCoreVSTestSettings) [deprecated] DotNetCoreVSTest is obsolete and will be removed in a future release. Use DotNetVSTest(ICakeContext, GlobPattern, DotNetVSTestSettings) instead. Test one or more projects specified by a path or glob pattern with settings using the VS Test host runner.
DotNetCoreVSTest(IEnumerable<FilePath>, DotNetCoreVSTestSettings) [deprecated] DotNetCoreVSTest is obsolete and will be removed in a future release. Use DotNetVSTest(ICakeContext, IEnumerable<FilePath>, DotNetVSTestSettings) instead. Test one or more specified projects with settings using the VS Test host runner.

Tool

DotNetCoreTool(FilePath, string) [deprecated] DotNetCoreTool is obsolete and will be removed in a future release. Use DotNetTool(ICakeContext, FilePath, string) instead. Execute an .NET Core Extensibility Tool.
DotNetCoreTool(FilePath, string, ProcessArgumentBuilder) [deprecated] DotNetCoreTool is obsolete and will be removed in a future release. Use DotNetTool(ICakeContext, FilePath, string, ProcessArgumentBuilder) instead. Execute an .NET Core Extensibility Tool.
DotNetCoreTool(FilePath, string, ProcessArgumentBuilder, DotNetCoreToolSettings) [deprecated] DotNetCoreTool is obsolete and will be removed in a future release. Use DotNetTool(ICakeContext, FilePath, string, ProcessArgumentBuilder, DotNetToolSettings) instead. Execute an .NET Core Extensibility Tool.
DotNetCoreTool(string) [deprecated] DotNetCoreTool is obsolete and will be removed in a future release. Use DotNetTool(ICakeContext, string) instead. Execute an .NET Core Extensibility Tool.
DotNetCoreTool(string, DotNetCoreToolSettings) [deprecated] DotNetCoreTool is obsolete and will be removed in a future release. Use DotNetTool(ICakeContext, string, DotNetToolSettings) instead. Execute an .NET Core Extensibility Tool.