This topic has not yet been rated - Rate this topic

GetFrameworkSdkPath Task

Retrieves the path to the Windows Software Development Kit (SDK).

The following table describes the parameters of the GetFrameworkSdkPath task.

Parameter

Description

Path

Optional String output parameter.

Contains the path to the Windows SDK.

If the Windows SDK is not installed, the task returns an empty value in the Path parameter.

The following example uses the GetFrameworkSdkPath task to store the path to the Windows SDK in the SdkPath property.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Target Name="GetPath">
        <GetFrameworkSdkPath>
            <Output
                TaskParameter="Path"
                PropertyName="SdkPath" />
        </GetFrameworkSdkPath>
        <Message Text="$(SdkPath)"/>
    </Target>
</Project>
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.