DotNetTool<TSettings> Class

Summary

Base class for all .NET Core related tools.
graph BT Type-->Base0["Tool<TSettings>"] Base0-->Base1["object"] Type["DotNetTool<TSettings>"] class Type type-node Derived0["DotNetWorkloadRestorer"]-->Type click Derived0 "/api/Cake.Common.Tools.DotNet.Workload.Restore/DotNetWorkloadRestorer" Derived1["DotNetWorkloadInstaller"]-->Type click Derived1 "/api/Cake.Common.Tools.DotNet.Workload.Install/DotNetWorkloadInstaller" Derived2["DotNetToolRunner"]-->Type click Derived2 "/api/Cake.Common.Tools.DotNet.Tool/DotNetToolRunner" Derived3["DotNetNuGetPusher"]-->Type click Derived3 "/api/Cake.Common.Tools.DotNet.NuGet.Push/DotNetNuGetPusher" Derived4["DotNetWorkloadLister"]-->Type click Derived4 "/api/Cake.Common.Tools.DotNet.Workload.List/DotNetWorkloadLister" Derived5["DotNetRestorer"]-->Type click Derived5 "/api/Cake.Common.Tools.DotNet.Restore/DotNetRestorer" Derived6["DotNetCleaner"]-->Type click Derived6 "/api/Cake.Common.Tools.DotNet.Clean/DotNetCleaner" Derived7["DotNetBuilder"]-->Type click Derived7 "/api/Cake.Common.Tools.DotNet.Build/DotNetBuilder" Derived8["DotNetSDKChecker"]-->Type click Derived8 "/api/Cake.Common.Tools.DotNet.SDKCheck/DotNetSDKChecker" Derived9["DotNetNuGetDeleter"]-->Type click Derived9 "/api/Cake.Common.Tools.DotNet.NuGet.Delete/DotNetNuGetDeleter" Derived10["DotNetBuildServer"]-->Type click Derived10 "/api/Cake.Common.Tools.DotNet.BuildServer/DotNetBuildServer" Derived11["DotNetPackageRemover"]-->Type click Derived11 "/api/Cake.Common.Tools.DotNet.Package.Remove/DotNetPackageRemover" Derived12["DotNetPackageAdder"]-->Type click Derived12 "/api/Cake.Common.Tools.DotNet.Package.Add/DotNetPackageAdder" Derived13["DotNetTester"]-->Type click Derived13 "/api/Cake.Common.Tools.DotNet.Test/DotNetTester" Derived14["DotNetMSBuildBuilder"]-->Type click Derived14 "/api/Cake.Common.Tools.DotNet.MSBuild/DotNetMSBuildBuilder" Derived15["DotNetExecutor"]-->Type click Derived15 "/api/Cake.Common.Tools.DotNet.Execute/DotNetExecutor" Derived16["DotNetNuGetSourcer"]-->Type click Derived16 "/api/Cake.Common.Tools.DotNet.NuGet.Source/DotNetNuGetSourcer" Derived17["DotNetPacker"]-->Type click Derived17 "/api/Cake.Common.Tools.DotNet.Pack/DotNetPacker" Derived18["DotNetWorkloadUninstaller"]-->Type click Derived18 "/api/Cake.Common.Tools.DotNet.Workload.Uninstall/DotNetWorkloadUninstaller" Derived19["DotNetWorkloadRepairer"]-->Type click Derived19 "/api/Cake.Common.Tools.DotNet.Workload.Repair/DotNetWorkloadRepairer" Derived20["DotNetFormatter"]-->Type click Derived20 "/api/Cake.Common.Tools.DotNet.Format/DotNetFormatter" Derived21["DotNetRunner"]-->Type click Derived21 "/api/Cake.Common.Tools.DotNet.Run/DotNetRunner" Derived22["DotNetVSTester"]-->Type click Derived22 "/api/Cake.Common.Tools.DotNet.VSTest/DotNetVSTester" Derived23["DotNetWorkloadSearcher"]-->Type click Derived23 "/api/Cake.Common.Tools.DotNet.Workload.Search/DotNetWorkloadSearcher" Derived24["DotNetWorkloadUpdater"]-->Type click Derived24 "/api/Cake.Common.Tools.DotNet.Workload.Update/DotNetWorkloadUpdater" Derived25["DotNetPublisher"]-->Type click Derived25 "/api/Cake.Common.Tools.DotNet.Publish/DotNetPublisher"

Syntax

public abstract class DotNetTool<TSettings> : Tool<TSettings> where TSettings : DotNetSettings

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, ProcessSettings, Action<IProcess>) 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.
RunCommand(TSettings, ProcessArgumentBuilder) void
Runs the dotnet cli command using the specified settings and arguments.

Extension Methods

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