ToolLocationHelper.GetPathToStandardLibraries Method

Definition

Returns the path to the reference assemblies location for the given target framework's standard libraries (i.e. mscorlib). This method will assume the requested ReferenceAssemblyRoot path will be the ProgramFiles directory specified by Environment.SpecialFolder.ProgramFiles In addition when the .NETFramework or .NET Framework targetFrameworkIdentifiers are seen and targetFrameworkVersion is 2.0, 3.0, 3.5 or 4.0 we will return the correctly chained reference assembly paths for the legacy .NET Framework versions. This chaining will use the existing GetPathToDotNetFrameworkReferenceAssemblies to build up the list of reference assembly paths.

Overloads

GetPathToStandardLibraries(String, String, String)

Returns the path to the reference assemblies location for the given target framework's standard libraries (i.e. mscorlib). This method will assume the requested ReferenceAssemblyRoot path will be the ProgramFiles directory specified by Environment.SpecialFolder.ProgramFiles In addition, when the .NETFramework or .NET Framework targetFrameworkIdentifiers are seen and targetFrameworkVersion is 2.0, 3.0, 3.5 or 4.0 we will return the correctly chained reference assembly paths for the legacy .NET Framework versions. This chaining will use the existing GetPathToDotNetFrameworkReferenceAssemblies to build up the list of reference assembly paths.

GetPathToStandardLibraries(String, String, String, String)

Returns the path to mscorlib and system.dll.

GetPathToStandardLibraries(String, String, String)

Returns the path to the reference assemblies location for the given target framework's standard libraries (i.e. mscorlib). This method will assume the requested ReferenceAssemblyRoot path will be the ProgramFiles directory specified by Environment.SpecialFolder.ProgramFiles In addition, when the .NETFramework or .NET Framework targetFrameworkIdentifiers are seen and targetFrameworkVersion is 2.0, 3.0, 3.5 or 4.0 we will return the correctly chained reference assembly paths for the legacy .NET Framework versions. This chaining will use the existing GetPathToDotNetFrameworkReferenceAssemblies to build up the list of reference assembly paths.

public:
 static System::String ^ GetPathToStandardLibraries(System::String ^ targetFrameworkIdentifier, System::String ^ targetFrameworkVersion, System::String ^ targetFrameworkProfile);
public static string GetPathToStandardLibraries (string targetFrameworkIdentifier, string targetFrameworkVersion, string targetFrameworkProfile);
static member GetPathToStandardLibraries : string * string * string -> string
Public Shared Function GetPathToStandardLibraries (targetFrameworkIdentifier As String, targetFrameworkVersion As String, targetFrameworkProfile As String) As String

Parameters

targetFrameworkIdentifier
String

Identifier being targeted

targetFrameworkVersion
String

Version being targeted

targetFrameworkProfile
String

Profile being targeted

Returns

Collection of reference assembly locations.

Exceptions

When the frameworkName is null

GetPathToStandardLibraries(String, String, String, String)

Returns the path to mscorlib and system.dll.

public:
 static System::String ^ GetPathToStandardLibraries(System::String ^ targetFrameworkIdentifier, System::String ^ targetFrameworkVersion, System::String ^ targetFrameworkProfile, System::String ^ platformTarget);
public static string GetPathToStandardLibraries (string targetFrameworkIdentifier, string targetFrameworkVersion, string targetFrameworkProfile, string platformTarget);
static member GetPathToStandardLibraries : string * string * string * string -> string
Public Shared Function GetPathToStandardLibraries (targetFrameworkIdentifier As String, targetFrameworkVersion As String, targetFrameworkProfile As String, platformTarget As String) As String

Parameters

targetFrameworkIdentifier
String

Identifier being targeted

targetFrameworkVersion
String

Version being targeted

targetFrameworkProfile
String

Profile being targeted

platformTarget
String

This is used to determine where we should look for the standard libraries. Note, this parameter is only used for .NET Framework 3.5 or less.

Returns

Collection of reference assembly locations.

Exceptions

When the frameworkName is null

Applies to