次の方法で共有


ToolLocationHelper.GetPathToDotNetFramework Method

Definition

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

Overloads

GetPathToDotNetFramework(TargetDotNetFrameworkVersion)

Get a fully qualified path to the frameworks root directory.

GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture)

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

GetPathToDotNetFramework(TargetDotNetFrameworkVersion)

Source:
ToolLocationHelper.cs

Get a fully qualified path to the frameworks root directory.

public:
 static System::String ^ GetPathToDotNetFramework(Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version);
public static string GetPathToDotNetFramework (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public static string GetPathToDotNetFramework (Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);
static member GetPathToDotNetFramework : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion -> string
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
static member GetPathToDotNetFramework : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion -> string
Public Shared Function GetPathToDotNetFramework (version As TargetDotNetFrameworkVersion) As String

Parameters

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

Returns

Will return 'null' if there is no target frameworks on this machine.

Attributes

Applies to

GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture)

Source:
ToolLocationHelper.cs

Get 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

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

architecture
DotNetFrameworkArchitecture

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

Returns

Applies to