ToolLocationHelper.GetFoldersInVSInstalls(Version, Version, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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