Export (0) Print
Expand All

ToolLocationHelper.GetPlatformExtensionSDKLocation Method (String, String, String, String, String)

.NET Framework 4.5

Given an SDKName, targetPlatformIdentifier and TargetPlatformVersion search the default sdk locations for the passed in sdk name.

The format of the sdk moniker is SDKName, Version=X.X

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.v4.0 (in Microsoft.Build.Utilities.v4.0.dll)

public static string GetPlatformExtensionSDKLocation(
	string sdkMoniker,
	string targetPlatformIdentifier,
	string targetPlatformVersion,
	string diskRoots,
	string registryRoot


Type: System.String

Name of the SDK to determine the installation location for.

Type: System.String

Targeted platform to find SDKs for

Type: System.String

Targeted platform version to find SDKs for

Type: System.String

List of disk roots to search for sdks within

Type: System.String

Registry root to look for sdks within

Return Value

Type: System.String
Location of the SDK if it is found, empty string if it could not be found

.NET Framework

Supported in: 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft