ToolLocationHelper.FilterTargetPlatformSdks Method

Definition

Filter list of platform sdks based on minimum OS and VS versions

public:
 static System::Collections::Generic::IList<Microsoft::Build::Utilities::TargetPlatformSDK ^> ^ FilterTargetPlatformSdks(System::Collections::Generic::IList<Microsoft::Build::Utilities::TargetPlatformSDK ^> ^ targetPlatformSdkList, Version ^ osVersion, Version ^ vsVersion);
public static System.Collections.Generic.IList<Microsoft.Build.Utilities.TargetPlatformSDK> FilterTargetPlatformSdks (System.Collections.Generic.IList<Microsoft.Build.Utilities.TargetPlatformSDK> targetPlatformSdkList, Version osVersion, Version vsVersion);
static member FilterTargetPlatformSdks : System.Collections.Generic.IList<Microsoft.Build.Utilities.TargetPlatformSDK> * Version * Version -> System.Collections.Generic.IList<Microsoft.Build.Utilities.TargetPlatformSDK>
Public Shared Function FilterTargetPlatformSdks (targetPlatformSdkList As IList(Of TargetPlatformSDK), osVersion As Version, vsVersion As Version) As IList(Of TargetPlatformSDK)

Parameters

targetPlatformSdkList
IList<TargetPlatformSDK>

List of platform sdks

osVersion
Version

Operating System version. Pass null to not filter based on this parameter

vsVersion
Version

Visual Studio version. Pass null not to filter based on this parameter

Returns

List of Target Platform SDKs

Applies to