ToolLocationHelper.FilterTargetPlatformSdks Method
Gets a filtered list of platform SDKs, based on the minimum OS and VS versions.
Namespace: Microsoft.Build.Utilities
Assembly: Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)
Syntax
'Declaration
Public Shared Function FilterTargetPlatformSdks ( _
targetPlatformSdkList As IList(Of TargetPlatformSDK), _
osVersion As Version, _
vsVersion As Version _
) As IList(Of TargetPlatformSDK)
public static IList<TargetPlatformSDK> FilterTargetPlatformSdks(
IList<TargetPlatformSDK> targetPlatformSdkList,
Version osVersion,
Version vsVersion
)
public:
static IList<TargetPlatformSDK^>^ FilterTargetPlatformSdks(
IList<TargetPlatformSDK^>^ targetPlatformSdkList,
Version^ osVersion,
Version^ vsVersion
)
static member FilterTargetPlatformSdks :
targetPlatformSdkList:IList<TargetPlatformSDK> *
osVersion:Version *
vsVersion:Version -> IList<TargetPlatformSDK>
public static function FilterTargetPlatformSdks(
targetPlatformSdkList : IList<TargetPlatformSDK>,
osVersion : Version,
vsVersion : Version
) : IList<TargetPlatformSDK>
Parameters
targetPlatformSdkList
Type: IList<TargetPlatformSDK>A list of TargetPlatformSDK objects.
osVersion
Type: System.VersionThe OS version, or null if you don’t want to filter on it. The format must be x.y, where x is the major version and y is the minor version, for example 6.3.
vsVersion
Type: System.VersionThe VS version, or null if you don’t want to filter on it. . The format must be x.y, where x is the major version and y is the minor version, for example 12.0.
Return Value
Type: IList<TargetPlatformSDK>
A list of Target Platform SDKs, filtered by OS and VS versions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.