ToolLocationHelper.GetPathToReferenceAssemblies Method (FrameworkName)
Gets the paths to the reference assemblies location for the given target framework.
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 ( _
frameworkName As FrameworkName _
) As IList(Of String)
public static IList<string> GetPathToReferenceAssemblies(
FrameworkName frameworkName
)
public:
static IList<String^>^ GetPathToReferenceAssemblies(
FrameworkName^ frameworkName
)
static member GetPathToReferenceAssemblies :
frameworkName:FrameworkName -> IList<string>
public static function GetPathToReferenceAssemblies(
frameworkName : FrameworkName
) : IList<String>
Parameters
frameworkName
Type: FrameworkNameThe framework name.
Return Value
Type: IList<String>
Returns the paths to the reference assemblies location.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | When the frameworkName is null |
Remarks
This method assumes that the requested ReferenceAssemblyRoot path will be the ProgramFiles directory that is 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, the correctly chained reference assembly paths for the legacy .NET Framework versions will be returned. This chaining will use the existing GetPathToDotNetFrameworkReferenceAssemblies to build up the list of reference assembly paths.
.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.