Compartir a través de


ToolLocationHelper.GetAssemblyFoldersExInfo Method

Gets a sorted list of AssemblyFoldersExInfo objects which contain information about the directories in which the third party assemblies are registered. This information is used at build and design time.

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 GetAssemblyFoldersExInfo ( _
    registryRoot As String, _
    targetFrameworkVersion As String, _
    registryKeySuffix As String, _
    osVersion As String, _
    platform As String, _
    targetProcessorArchitecture As ProcessorArchitecture _
) As IList(Of AssemblyFoldersExInfo)
public static IList<AssemblyFoldersExInfo> GetAssemblyFoldersExInfo(
    string registryRoot,
    string targetFrameworkVersion,
    string registryKeySuffix,
    string osVersion,
    string platform,
    ProcessorArchitecture targetProcessorArchitecture
)
public:
static IList<AssemblyFoldersExInfo^>^ GetAssemblyFoldersExInfo(
    String^ registryRoot, 
    String^ targetFrameworkVersion, 
    String^ registryKeySuffix, 
    String^ osVersion, 
    String^ platform, 
    ProcessorArchitecture targetProcessorArchitecture
)
static member GetAssemblyFoldersExInfo : 
        registryRoot:string * 
        targetFrameworkVersion:string * 
        registryKeySuffix:string * 
        osVersion:string * 
        platform:string * 
        targetProcessorArchitecture:ProcessorArchitecture -> IList<AssemblyFoldersExInfo> 
public static function GetAssemblyFoldersExInfo(
    registryRoot : String, 
    targetFrameworkVersion : String, 
    registryKeySuffix : String, 
    osVersion : String, 
    platform : String, 
    targetProcessorArchitecture : ProcessorArchitecture
) : IList<AssemblyFoldersExInfo>

Parameters

  • registryRoot
    Type: System.String

    The root registry location for the targeted framework. For .NET this is SOFTWARE\MICROSOFT\.NETFramework.

  • targetFrameworkVersion
    Type: System.String

    The targeted framework version (2.0, 3.0, 3.5, 4.0, ….).

  • registryKeySuffix
    Type: System.String

    The name of the folder, (AssemblyFoldersEx) could also be PocketPC\AssemblyFoldersEx, or others.

  • osVersion
    Type: System.String

    The targeted minimum and maximum OS versions in the registry. These values are used to return only directories for OS versions between the declared minimum and maximum. If this value is blank or null, no filtering is done.

  • platform
    Type: System.String

    The targeted platform GUIDs. Used to return only directories which have a matching platform GUID. If this value is blank or null no filtering is done.

Return Value

Type: IList<AssemblyFoldersExInfo>
Returns list of AssemblyFoldersExInfo.

Remarks

This method enumerates the AssemblyFoldersEx registry location and returns the list of AssemblyFoldersExInfoin the same order that they are searched for reference assemblies at design and build time.

On a 64-bit operating system, if targeting 64-bit, add in the 64-bit hive then the 32-bit hive; if targeting 32-bit, add in the 32-bit hive then the 64-bit hive. On 32-bit machine only add in the 32-bit hive.

.NET Framework Security

See Also

Reference

ToolLocationHelper Class

Microsoft.Build.Utilities Namespace