Skip to content

Latest commit

 

History

History
61 lines (54 loc) · 3.03 KB

getframeworkpath-task.md

File metadata and controls

61 lines (54 loc) · 3.03 KB
title ms.custom ms.date ms.technology ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid author ms.author manager ms.workload
GetFrameworkPath Task | Microsoft Docs
11/04/2016
msbuild
conceptual
VB
CSharp
C++
jsharp
GetFrameworkPath task [MSBuild]
MSBuild, GetFrameworkPath task
5b7bcdd7-d4a0-442d-af29-8aadb3b10598
mikejo5000
mikejo
douge
multiple

GetFrameworkPath Task

Retrieves the path to the [!INCLUDEdnprdnshort] assemblies.

Task Parameters

The following table describes the parameters of the GetFrameworkPath task.

Parameter Description
FrameworkVersion11Path Optional String output parameter.

Contains the path to the framework version 1.1 assemblies, if present. Otherwise returns null.
FrameworkVersion20Path Optional String output parameter.

Contains the path to the framework version 2.0 assemblies, if present. Otherwise returns null.
FrameworkVersion30Path Optional String output parameter.

Contains the path to the framework version 3.0 assemblies, if present. Otherwise returns null.
FrameworkVersion35Path Optional String output parameter.

Contains the path to the framework version 3.5 assemblies, if present. Otherwise returns null.
FrameworkVersion40Path Optional String output parameter.

Contains the path to the framework version 4.0 assemblies, if present. Otherwise returns null.
Path Optional String output parameter.

Contains the path to the latest framework assemblies, if any are available. Otherwise returns null.

Remarks

If several versions of the [!INCLUDEdnprdnshort] are installed, this task returns the version that [!INCLUDEvstecmsbuild] is designed to run on.

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 GetFrameworkPath task to store the path to the [!INCLUDEdnprdnshort] in the FrameworkPath property.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  
    <Target Name="GetPath">  
        <GetFrameworkPath>  
            <Output  
                TaskParameter="Path"  
                PropertyName="FrameworkPath" />  
        </GetFrameworkPath>  
    </Target>  
</Project>  

See Also

Tasks
Task Reference