1 out of 1 rated this helpful - Rate this topic

GetFrameworkPath Task

Updated: January 2010

Retrieves the path to the .NET Framework assemblies.

The following table describes the parameters of the GetFrameworkPath task.

Parameter

Description

Path

Optional String output parameter.

Contains the path to the .NET Framework assemblies.

If several versions of the .NET Framework are installed, this task returns the version that MSBuild is designed to run on.

The following example uses the GetFrameworkPath task to store the path to the .NET Framework 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>

Date

History

Reason

January 2010

Added closing bracket in code.

Customer feedback.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.