Share via


ToolLocationHelper.GetPathToDotNetFrameworkSdkFile Method

Definition

Gets the fully qualified path to a file in the .NET Framework SDK.

Overloads

GetPathToDotNetFrameworkSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion, DotNetFrameworkArchitecture)

Get a fully qualified path to a file in the .NET Framework SDK. Error if the .NET Framework SDK can't be found.

GetPathToDotNetFrameworkSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion)

Get a fully qualified path to a file in the .NET Framework SDK. Error if the .NET Framework SDK can't be found.

GetPathToDotNetFrameworkSdkFile(String, TargetDotNetFrameworkVersion)

Get a fully qualified path to a file in the .NET Framework SDK. Error if the .NET Framework SDK can't be found. 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.

GetPathToDotNetFrameworkSdkFile(String)

Get a fully qualified path to a file in the latest .NET Framework SDK. Error if the .NET Framework SDK can't be found. 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.

GetPathToDotNetFrameworkSdkFile(String, TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture)

Get a fully qualified path to a file in the .NET Framework SDK. Error if the .NET Framework SDK can't be found.

GetPathToDotNetFrameworkSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion, DotNetFrameworkArchitecture)

Source:
ToolLocationHelper.cs

Get a fully qualified path to a file in the .NET Framework SDK. Error if the .NET Framework SDK can't be found.

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

Parameters

fileName
String

File name to locate in the .NET Framework SDK directory

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

visualStudioVersion
VisualStudioVersion

Version of Visual Studio

architecture
DotNetFrameworkArchitecture

The required architecture of the requested file.

Returns

Path string.

Applies to

GetPathToDotNetFrameworkSdkFile(String, TargetDotNetFrameworkVersion, VisualStudioVersion)

Source:
ToolLocationHelper.cs

Get a fully qualified path to a file in the .NET Framework SDK. Error if the .NET Framework SDK can't be found.

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

Parameters

fileName
String

File name to locate in the .NET Framework SDK directory

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

visualStudioVersion
VisualStudioVersion

Version of Visual Studio the requested SDK is associated with

Returns

Path string.

Applies to

GetPathToDotNetFrameworkSdkFile(String, TargetDotNetFrameworkVersion)

Source:
ToolLocationHelper.cs

Get a fully qualified path to a file in the .NET Framework SDK. Error if the .NET Framework SDK can't be found. 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 ^ GetPathToDotNetFrameworkSdkFile(System::String ^ fileName, Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version);
public static string GetPathToDotNetFrameworkSdkFile (string fileName, Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public static string GetPathToDotNetFrameworkSdkFile (string fileName, Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);
static member GetPathToDotNetFrameworkSdkFile : string * Microsoft.Build.Utilities.TargetDotNetFrameworkVersion -> string
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
static member GetPathToDotNetFrameworkSdkFile : string * Microsoft.Build.Utilities.TargetDotNetFrameworkVersion -> string
Public Shared Function GetPathToDotNetFrameworkSdkFile (fileName As String, version As TargetDotNetFrameworkVersion) As String

Parameters

fileName
String

File name to locate in the .NET Framework SDK directory

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

Returns

Path string.

Attributes

Remarks

The path for the SDK takes in consideration the processor architecture environment information for the calling process, so it might end up being ".../bin/i64", for example.

Unlike GetPathToDotNetFrameworkFile and GetPathToSystemFile this method checks for the existence of the file, so that an invalid fileName returns null.

Applies to

GetPathToDotNetFrameworkSdkFile(String)

Source:
ToolLocationHelper.cs

Get a fully qualified path to a file in the latest .NET Framework SDK. Error if the .NET Framework SDK can't be found. 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 ^ GetPathToDotNetFrameworkSdkFile(System::String ^ fileName);
public static string GetPathToDotNetFrameworkSdkFile (string fileName);
static member GetPathToDotNetFrameworkSdkFile : string -> string
Public Shared Function GetPathToDotNetFrameworkSdkFile (fileName As String) As String

Parameters

fileName
String

File name to locate in the .NET Framework SDK directory

Returns

Path string.

Applies to

GetPathToDotNetFrameworkSdkFile(String, TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture)

Source:
ToolLocationHelper.cs

Get a fully qualified path to a file in the .NET Framework SDK. Error if the .NET Framework SDK can't be found.

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

Parameters

fileName
String

File name to locate in the .NET Framework SDK directory

version
TargetDotNetFrameworkVersion

Version of the targeted .NET Framework

architecture
DotNetFrameworkArchitecture

The required architecture of the requested file.

Returns

Path string.

Attributes

Applies to