ToolLocationHelper.FilterTargetPlatformSdks 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.
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