Skip to content

Latest commit

 

History

History
61 lines (51 loc) · 2.36 KB

getframeworksdkpath-task.md

File metadata and controls

61 lines (51 loc) · 2.36 KB
title ms.date ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid author ms.author manager ms.workload
GetFrameworkSdkPath Task | Microsoft Docs
11/04/2016
reference
VB
CSharp
C++
jsharp
GetFrameworkSdkPath task [MSBuild]
MSBuild, GetFrameworkSdkPath task
2ef82b98-02b6-40cf-a9b5-f0e882fb5064
ghogen
ghogen
jillfra
multiple

GetFrameworkSdkPath task

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

Task parameters

The following table describes the parameters of the GetFrameworkSdkPath task. The following table describes the parameters of the GetFrameworkSdkPath task.

Parameter Description
FrameworkSdkVersion20Path Optional String read-only output parameter.

Returns the path to the .NET SDK version 2.0, if present. Otherwise returns String.Empty.
FrameworkSdkVersion35Path Optional String read-only output parameter.

Returns the path to the .NET SDK version 3.5, if present. Otherwise returns String.Empty.
FrameworkSdkVersion40Path Optional String read-only output parameter.

Returns the path to the .NET SDK version 4.0, if present. Otherwise returns String.Empty.
Path Optional String output parameter.

Contains the path to the latest .NET SDK, if any version is present. Otherwise returns String.Empty.

Remarks

In addition to the parameters listed above, this task inherits parameters from the xref:Microsoft.Build.Tasks.TaskExtension class, which itself inherits from the xref:Microsoft.Build.Utilities.Task class. For a list of these additional parameters and their descriptions, see TaskExtension base class.

Example

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>

See also