Share via


ToolLocationHelper.GetPathToStandardLibraries Method (String, String, String, String)

Returns the path to mscorlib and system.dll

MSBuild is now included in Visual Studio instead of the .NET Framework.You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

Syntax

'Declaration
Public Shared Function GetPathToStandardLibraries ( _
    targetFrameworkIdentifier As String, _
    targetFrameworkVersion As String, _
    targetFrameworkProfile As String, _
    platformTarget As String _
) As String
public static string GetPathToStandardLibraries(
    string targetFrameworkIdentifier,
    string targetFrameworkVersion,
    string targetFrameworkProfile,
    string platformTarget
)
public:
static String^ GetPathToStandardLibraries(
    String^ targetFrameworkIdentifier, 
    String^ targetFrameworkVersion, 
    String^ targetFrameworkProfile, 
    String^ platformTarget
)
static member GetPathToStandardLibraries : 
        targetFrameworkIdentifier:string * 
        targetFrameworkVersion:string * 
        targetFrameworkProfile:string * 
        platformTarget:string -> string
public static function GetPathToStandardLibraries(
    targetFrameworkIdentifier : String, 
    targetFrameworkVersion : String, 
    targetFrameworkProfile : String, 
    platformTarget : String
) : String

Parameters

  • targetFrameworkIdentifier
    Type: System.String

    Identifier being targeted

  • targetFrameworkVersion
    Type: System.String

    Version being targeted

  • targetFrameworkProfile
    Type: System.String

    Profile being targeted

  • platformTarget
    Type: System.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.

Return Value

Type: System.String
Collection of reference assembly locations.

Exceptions

Exception Condition
ArgumentNullException

When the frameworkName is null

.NET Framework Security

See Also

Reference

ToolLocationHelper Class

GetPathToStandardLibraries Overload

Microsoft.Build.Utilities Namespace