Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ToolLocationHelper.GetPathToDotNetFrameworkSdk Method

Definition

Namespace:
Microsoft.Build.Utilities
Assembly:
Microsoft.Build.Utilities.Core.dll
Assembly:
Microsoft.Build.Utilities.dll
Assemblies:
Microsoft.Build.Utilities.dll, Microsoft.Build.Utilities.v3.5.dll
Assembly:
Microsoft.Build.Utilities.v4.0.dll
Package:
Microsoft.Build.Utilities.Core v15.9.20
Package:
Microsoft.Build.Utilities.Core v16.11.0
Package:
Microsoft.Build.Utilities.Core v17.14.8
Package:
Microsoft.Build.Utilities.Core v18.3.3
Package:
Microsoft.Build.Utilities.Core v18.4.0

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Overloads

Name Description
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
Source:
ToolLocationHelper.cs
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
Source:
ToolLocationHelper.cs
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
Source:
ToolLocationHelper.cs
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