Summary
The installation scope for
dotnet tool commands that support global, local, or tool-path installation.
- Namespace
- Cake
.Common .Tools .DotNet .Tool - Interfaces
-
- IComparable
- ISpanFormattable
- IFormattable
- IConvertible
- Base Types
-
- object
- ValueType
- Enum
graph BT
Type-->Base0["Enum"]
Base0-->Base1["ValueType"]
Base1-->Base2["object"]
Type-.->Interface0["IComparable"]
Type-.->Interface1["ISpanFormattable"]
Type-.->Interface2["IFormattable"]
Type-.->Interface3["IConvertible"]
Type["DotNetToolInstallationScope"]
class Type type-node
Syntax
public enum DotNetToolInstallationScope
Fields
| Name | Constant Value | Summary |
|---|---|---|
| Global | 1 |
Maps to
--global.
static
|
| Local | 2 |
Maps to
--local. Use ToolManifest to target a specific manifest.
static
|
| ToolPath | 0 |
Maps to
--tool-path. Uses ToolInstallationPath when set;
otherwise falls back to the Cake tools directory (same as the #tool directive).
static
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
| IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
| ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
| To |
string |
From StringExtensions
Requires the Cake.Issues addin
|
