次の方法で共有


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

  • osVersion
    Type: System.Version

    The 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.Version

    The 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

See Also

Reference

ToolLocationHelper Class

Microsoft.Build.Utilities Namespace