ToolLocationHelper.GetPathToDotNetFramework ToolLocationHelper.GetPathToDotNetFramework ToolLocationHelper.GetPathToDotNetFramework ToolLocationHelper.GetPathToDotNetFramework Method

Definition

Gets a fully qualified path to the .NET Framework root directory.

Overloads

GetPathToDotNetFramework(TargetDotNetFrameworkVersion) GetPathToDotNetFramework(TargetDotNetFrameworkVersion) GetPathToDotNetFramework(TargetDotNetFrameworkVersion) GetPathToDotNetFramework(TargetDotNetFrameworkVersion)

Gets a fully qualified path to the .NET Framework root directory.

GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture) GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture) GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture) GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture)

Gets a fully qualified path to the framework's root directory.

GetPathToDotNetFramework(TargetDotNetFrameworkVersion) GetPathToDotNetFramework(TargetDotNetFrameworkVersion) GetPathToDotNetFramework(TargetDotNetFrameworkVersion) GetPathToDotNetFramework(TargetDotNetFrameworkVersion)

Gets a fully qualified path to the .NET Framework root directory.

public:
 static System::String ^ GetPathToDotNetFramework(Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version);
public static string GetPathToDotNetFramework (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);
static member GetPathToDotNetFramework : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion -> string
Public Shared Function GetPathToDotNetFramework (version As TargetDotNetFrameworkVersion) As String

Parameters

Returns

A string containing the fully qualified path to the .NET Framework root directory, or a null reference (Nothing in Visual Basic) if the targeted version of the .NET Framework is not installed.

GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture) GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture) GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture) GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture)

Gets a fully qualified path to the framework's root directory.

public:
 static System::String ^ GetPathToDotNetFramework(Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version, Microsoft::Build::Utilities::DotNetFrameworkArchitecture architecture);
public static string GetPathToDotNetFramework (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.DotNetFrameworkArchitecture architecture);
static member GetPathToDotNetFramework : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion * Microsoft.Build.Utilities.DotNetFrameworkArchitecture -> string
Public Shared Function GetPathToDotNetFramework (version As TargetDotNetFrameworkVersion, architecture As DotNetFrameworkArchitecture) As String

Parameters

architecture
DotNetFrameworkArchitecture DotNetFrameworkArchitecture DotNetFrameworkArchitecture DotNetFrameworkArchitecture

Desired architecture, or DotNetFrameworkArchitecture.Current for the architecture this process is currently running under.

Returns

A fully qualified path to the framework's root directory.

Applies to