共用方式為


ToolLocationHelper.GetFoldersInVSInstallsAsString Method

Definition

Returns folders in VS installs of specified range of versions (starting with 15.0) separated by ';'.

public static string GetFoldersInVSInstallsAsString (string minVersionString = default, string maxVersionString = default, string subFolder = default);
static member GetFoldersInVSInstallsAsString : string * string * string -> string
Public Shared Function GetFoldersInVSInstallsAsString (Optional minVersionString As String = Nothing, Optional maxVersionString As String = Nothing, Optional subFolder As String = Nothing) As String

Parameters

minVersionString
String

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

maxVersionString
String

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 separated by ';'

Applies to