次の方法で共有


ToolLocationHelper.GetPathToDotNetFrameworkSdk Method

Definition

Gets the fully qualified path to the \bin directory of the .NET Framework SDK.

Overloads

GetPathToDotNetFrameworkSdk()

Returns the path to the "bin" directory of the latest .NET Framework SDK. When targeting .NET 3.5 or above, looks in the locations associated with Visual Studio 2010. If you wish to target the .NET Framework SDK that ships with Visual Studio Dev11 or later, please use the override that specifies a VisualStudioVersion.

GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion)

Returns the path to the "bin" directory of the .NET Framework SDK. When targeting .NET 3.5 or above, looks in the locations associated with Visual Studio 2010. If you wish to target the .NET Framework SDK that ships with Visual Studio Dev11 or later, please use the override that specifies a VisualStudioVersion.

GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion, VisualStudioVersion)

Returns the path to the .NET Framework SDK.

GetPathToDotNetFrameworkSdk()

Source:
ToolLocationHelper.cs

Returns the path to the "bin" directory of the latest .NET Framework SDK. When targeting .NET 3.5 or above, looks in the locations associated with Visual Studio 2010. If you wish to target the .NET Framework SDK that ships with Visual Studio Dev11 or later, please use the override that specifies a VisualStudioVersion.

public:
 static System::String ^ GetPathToDotNetFrameworkSdk();
public static string GetPathToDotNetFrameworkSdk ();
static member GetPathToDotNetFrameworkSdk : unit -> string
Public Shared Function GetPathToDotNetFrameworkSdk () As String

Returns

Path string.

Applies to

GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion)

Source:
ToolLocationHelper.cs

Returns the path to the "bin" directory of the .NET Framework SDK. When targeting .NET 3.5 or above, looks in the locations associated with Visual Studio 2010. If you wish to target the .NET Framework SDK that ships with Visual Studio Dev11 or later, please use the override that specifies a VisualStudioVersion.

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

Parameters

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

Returns

Path string.

Applies to

GetPathToDotNetFrameworkSdk(TargetDotNetFrameworkVersion, VisualStudioVersion)

Source:
ToolLocationHelper.cs

Returns the path to the .NET Framework SDK.

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

Parameters

version
TargetDotNetFrameworkVersion

The TargetDotNetFrameworkVersion of the .NET Framework.

visualStudioVersion
VisualStudioVersion

The VisualStudioVersion of Visual Studio.

Returns

Applies to