다음을 통해 공유


ToolLocationHelper.GetFoldersInVSInstalls(Version, Version, String) Method

Definition

Returns folders in VS installs of specifid range of versions, starting with 15.0.

public static System.Collections.Generic.IEnumerable<string> GetFoldersInVSInstalls (Version minVersion = default, Version maxVersion = default, string subFolder = default);
static member GetFoldersInVSInstalls : Version * Version * string -> seq<string>
Public Shared Function GetFoldersInVSInstalls (Optional minVersion As Version = Nothing, Optional maxVersion As Version = Nothing, Optional subFolder As String = Nothing) As IEnumerable(Of String)

Parameters

minVersion
Version

Optional. If specified, only VS instances with this or bigger version will be included.

maxVersion
Version

Optional. If specified, only VS instances with smaller versions will be included. For instance, 16.0 means that only 15.* versions will be included.

subFolder
String

Optional. If specified, the returned list will contain [VSInstallDir][subFolder] paths

Returns

Returns folders in VS installs in VS version descending order

Applies to