Freigeben über


ToolLocationHelper.GetPathToReferenceAssemblies Method (String, FrameworkName)

Gets the paths to the reference assemblies location for the given framework version relative to a given targetFrameworkRoot.

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 GetPathToReferenceAssemblies ( _
    targetFrameworkRootPath As String, _
    frameworkName As FrameworkName _
) As IList(Of String)
public static IList<string> GetPathToReferenceAssemblies(
    string targetFrameworkRootPath,
    FrameworkName frameworkName
)
public:
static IList<String^>^ GetPathToReferenceAssemblies(
    String^ targetFrameworkRootPath, 
    FrameworkName^ frameworkName
)
static member GetPathToReferenceAssemblies : 
        targetFrameworkRootPath:string * 
        frameworkName:FrameworkName -> IList<string> 
public static function GetPathToReferenceAssemblies(
    targetFrameworkRootPath : String, 
    frameworkName : FrameworkName
) : IList<String>

Parameters

  • targetFrameworkRootPath
    Type: System.String

    Root directory which will be used to calculate the reference assembly path. The references assembies will be generated in the following way TargetFrameworkRootPath\TargetFrameworkIdentifier\TargetFrameworkVersion\SubType\TargetFrameworkSubType.

  • frameworkName
    Type: FrameworkName

    A frameworkName class which represents a TargetFrameworkMoniker. This cannot be null.

Return Value

Type: IList<String>
Returns the paths to the reference assemblies location.

Remarks

This method does not check to see if the path exists or not.

.NET Framework Security

See Also

Reference

ToolLocationHelper Class

GetPathToReferenceAssemblies Overload

Microsoft.Build.Utilities Namespace