Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.StringRoot 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: FrameworkNameA 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.