VSWhereAliases Class

Summary

Contains functionality related to running VSWhere tool.

In order to use the commands for this alias, include the following in your build.cake file to download and install from nuget.org, or specify the ToolPath within the settings class:

#tool "nuget:?package=vswhere"

Namespace
Cake.Common.Tools.VSWhere
Base Types
  • object
graph BT Type-->Base0["object"] Type["VSWhereAliases"] class Type type-node

Syntax

[CakeAliasCategory("VSWhere")]
public static class VSWhereAliases

Attributes

Type Description
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Methods

Name Value Summary
VSWhereAll(ICakeContext, VSWhereAllSettings) DirectoryPathCollection
Gets all Visual Studio product installation paths.
static
VSWhereAll(ICakeContext) DirectoryPathCollection
Gets all Visual Studio product installation paths.
static
VSWhereLatest(ICakeContext, VSWhereLatestSettings) DirectoryPath
Gets the latest Visual Studio product installation path.
static
VSWhereLatest(ICakeContext) DirectoryPath
Gets the latest Visual Studio product installation path.
static
VSWhereLegacy(ICakeContext, bool) DirectoryPath
Gets the legacy Visual Studio product installation paths.
static
VSWhereLegacy(ICakeContext, VSWhereLegacySettings) DirectoryPathCollection
Gets the legacy Visual Studio product installation paths.
static
VSWhereProducts(ICakeContext, string, VSWhereProductSettings) DirectoryPathCollection
Gets Visual Studio product installation paths.
static
VSWhereProducts(ICakeContext, string) DirectoryPathCollection
Gets Visual Studio product installation paths.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin