Summary
Base class for all VSWhere related tools.
Used to locate Visual Studio.
- Namespace
- Cake
.Common .Tools .VSWhere - Base Types
- Derived Types
graph BT
Type-->Base0["Tool<TSettings>"]
Base0-->Base1["object"]
Type["VSWhereTool<TSettings>"]
class Type type-node
Derived0["VSWhereAll"]-->Type
click Derived0 "/api/Cake.Common.Tools.VSWhere.All/VSWhereAll"
Derived1["VSWhereLegacy"]-->Type
click Derived1 "/api/Cake.Common.Tools.VSWhere.Legacy/VSWhereLegacy"
Derived2["VSWhereLatest"]-->Type
click Derived2 "/api/Cake.Common.Tools.VSWhere.Latest/VSWhereLatest"
Derived3["VSWhereProduct"]-->Type
click Derived3 "/api/Cake.Common.Tools.VSWhere.Product/VSWhereProduct"
Syntax
public abstract class VSWhereTool<TSettings> : Tool<TSettings> where TSettings : ToolSettings
Type Parameters
Name | Description |
---|---|
TSettings | The settings type. |
Constructors
Name | Summary |
---|---|
VSWhereTool |
Initializes a new instance of the VSWhereTool<TSettings> class.
|
Methods
Name | Value | Summary |
---|---|---|
AddCommonArguments |
Process |
Adds common arguments to the process builder.
|
Get |
IEnumerable |
Gets alternative file paths which the tool may exist in.
|
Get |
IEnumerable |
Gets the possible names of the tool executable.
|
GetToolName |
string |
Gets the name of the tool.
|
RunVSWhere |
Directory |
Runs VSWhere with supplied arguments and parses installation paths.
|
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
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues 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
|