DotNetCoreTool<TSettings> Class

Summary

Base class for all .NET Core related tools.
graph BT Type-->Base0["Tool<TSettings>"] Base0-->Base1["object"] Type["DotNetCoreTool<TSettings>"] class Type type-node Derived0["DotNetCoreCleaner"]-->Type click Derived0 "/api/Cake.Common.Tools.DotNetCore.Clean/DotNetCoreCleaner" Derived1["DotNetCoreRestorer"]-->Type click Derived1 "/api/Cake.Common.Tools.DotNetCore.Restore/DotNetCoreRestorer" Derived2["DotNetCorePacker"]-->Type click Derived2 "/api/Cake.Common.Tools.DotNetCore.Pack/DotNetCorePacker" Derived3["DotNetCoreTester"]-->Type click Derived3 "/api/Cake.Common.Tools.DotNetCore.Test/DotNetCoreTester" Derived4["DotNetCoreMSBuildBuilder"]-->Type click Derived4 "/api/Cake.Common.Tools.DotNetCore.MSBuild/DotNetCoreMSBuildBuilder" Derived5["DotNetCoreNuGetPusher"]-->Type click Derived5 "/api/Cake.Common.Tools.DotNetCore.NuGet.Push/DotNetCoreNuGetPusher" Derived6["DotNetCoreToolRunner"]-->Type click Derived6 "/api/Cake.Common.Tools.DotNetCore.Tool/DotNetCoreToolRunner" Derived7["DotNetCoreNuGetDeleter"]-->Type click Derived7 "/api/Cake.Common.Tools.DotNetCore.NuGet.Delete/DotNetCoreNuGetDeleter" Derived8["DotNetCorePublisher"]-->Type click Derived8 "/api/Cake.Common.Tools.DotNetCore.Publish/DotNetCorePublisher" Derived9["DotNetCoreRunner"]-->Type click Derived9 "/api/Cake.Common.Tools.DotNetCore.Run/DotNetCoreRunner" Derived10["DotNetCoreBuilder"]-->Type click Derived10 "/api/Cake.Common.Tools.DotNetCore.Build/DotNetCoreBuilder" Derived11["DotNetCoreNuGetSourcer"]-->Type click Derived11 "/api/Cake.Common.Tools.DotNetCore.NuGet.Source/DotNetCoreNuGetSourcer" Derived12["DotNetCoreExecutor"]-->Type click Derived12 "/api/Cake.Common.Tools.DotNetCore.Execute/DotNetCoreExecutor" Derived13["DotNetCoreBuildServer"]-->Type click Derived13 "/api/Cake.Common.Tools.DotNetCore.BuildServer/DotNetCoreBuildServer" Derived14["DotNetCoreVSTester"]-->Type click Derived14 "/api/Cake.Common.Tools.DotNetCore.VSTest/DotNetCoreVSTester"

Syntax

public abstract class DotNetCoreTool<TSettings> : Tool<TSettings> 
    where TSettings : DotNetCoreSettings

Type Parameters

Name Description
TSettings The settings type.

Constructors

Methods

Name Value Summary
CreateArgumentBuilder(TSettings) ProcessArgumentBuilder
Creates a ProcessArgumentBuilder and adds common commandline arguments.
GetToolExecutableNames() IEnumerable<string>
Gets the possible names of the tool executable.
GetToolName() string
Gets the name of the tool.
RunCommand(TSettings, ProcessArgumentBuilder) void
Runs the dotnet cli command using the specified settings and arguments.
RunCommand(TSettings, ProcessArgumentBuilder, ProcessSettings) void
Runs the dotnet cli command using the specified settings and arguments.

Extension Methods

Name Value Summary
Dump<DotNetCoreTool<TSettings>>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<DotNetCoreTool<TSettings>>(DotNetCoreTool<TSettings>[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<DotNetCoreTool<TSettings>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<DotNetCoreTool<TSettings>>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<DotNetCoreTool<TSettings>>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<DotNetCoreTool<TSettings>>(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