Export (0) Print
Expand All

ToolLocationHelper.GetPathToReferenceAssemblies Method (String, String, String)

Returns the paths to the reference assemblies location for the given target framework. This method will assume the requested ReferenceAssemblyRoot path will be the ProgramFiles directory specified by Environment.SpecialFolder.ProgramFiles In additon 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.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.v4.0 (in Microsoft.Build.Utilities.v4.0.dll)

public static IList<string> GetPathToReferenceAssemblies(
	string targetFrameworkIdentifier,
	string targetFrameworkVersion,
	string targetFrameworkProfile
)

Parameters

targetFrameworkIdentifier
Type: System.String

Identifier being targeted

targetFrameworkVersion
Type: System.String

Version being targeted

targetFrameworkProfile
Type: System.String

Profile being targeted

Return Value

Type: System.Collections.Generic.IList<String>
Collection of reference assembly locations.

ExceptionCondition
ArgumentNullException

When the frameworkName is null

.NET Framework

Supported in: 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft